The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Making patient-level predictive network study packages using Strategus

Egill Fridgeirsson, Jenna Reps

2025-07-25

Introduction

The OHDSI Patient-Level Prediction (PLP) package provides the framework to implement prediction models at scale. This can range from developing a large number of models across sites (methodology and study design insight) to extensive external validation of existing models in the OHDSI PLP framework (model insight). This vignette describes how you can use the Strategus package to create and execute network studies using the PLP framework. (Strategus)[https://github.com/OHDSI/Strategus] is a package to create and execute network studies in the OHDSI ecosystem. It works by creating a json file that holds all the specifications of the study, such as the target and outcome cohort definition, the settings of the model and PLP pipeline. This json can then be shared with other data partners who then can use Strategus to execute the study on their data. Strategus output is always csv files with aggregated data that can then be shared with the study coordinater. Strategus can be used for all kinds of studies, not only PLP studies, such as characterization, population level estimation and more. This vignette describes how to create and run Strategus studies that use the PLP framework to develop and validate patient-level prediction models.

Main steps for running a network study

Step 1 – developing the study

Among patients who have just started on an ACE inhibitor for the first time, who will experience angioedema in the following year?

This is the same problem as example 2 in the vignette Building Predictive Models.

The cohorts to use can be fetched from the OHDSI Demo atlas. The target cohort is defined as patients who have started on an ACE inhibitor for the first time, and the outcome cohort is defined as patients who have experienced angioedema within one year of starting the ACE inhibitor. The target cohort is this one, and the outcome cohort is this one. First thing that needs to be done is fetch those cohorts. This is done by pressing the link for the cohort, going to the Export tab, and within that tab going to the JSON sub-tab. There you will see a box with the JSON defining the cohort. Below that on the left side is a copy to clipboard button. If you copy the JSON from there, you can paste it into an empty file and add the json extension.

library(PatientLevelPrediction)

# Create a model design object
modelDesign <- createModelDesign(
  targetId = 1,
  outcomeId = 2,
  populationSettings = createStudyPopulationSettings(
    requireTimeAtRisk = FALSE,
    riskWindowEnd = 3*365
  ),
  covariateSettings = FeatureExtraction::createCovariateSettings(
    useDemographicsGender = TRUE,
    useDemographicsAge = TRUE,
    useConditionOccurrenceLongTerm = TRUE,
    useDrugEraLongTerm = TRUE,
    useCharlsonIndex = TRUE,
    longTermStartDays = -365,
    endDays = 0
  ),
  preprocessSettings = createPreprocessSettings(), # default settings used
  modelSettings = setLassoLogsticRegression(seed = 42)
  splitSettings = createDefaultSplitSettings(splitSeed = 42)
)

Next we need to create the json analysis specification file using Strategus.

Step 2 – implementing the study part 1

Step 3 – implementing the study part 2 (make sure the package is functioning as planned and the definitions are valid across sites)

Step 4 – Publication

The study creator has the first option to be first author, if he/she does not wish to be first author then he/she can pick the most suitable person from the contributors. All contributors will be listed as authors on the paper. The last author will be the person who lead/managed the study, if this was the first author then the first author can pick the most suitable last author. All authors between the first and last author will be alphabetical by last name.

Package Skeleton - File Structure

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.