View source: R/PopulationSettings.R
createStudyPopulation | R Documentation |
Create a study population
createStudyPopulation(
plpData,
outcomeId,
populationSettings,
population = NULL
)
plpData |
An object of type |
outcomeId |
The ID of the outcome. |
populationSettings |
An object of class populationSettings created using |
population |
If specified, this population will be used as the starting point instead of the
cohorts in the |
Create a study population by enforcing certain inclusion and exclusion criteria, defining a risk window, and determining which outcomes fall inside the risk window.
A data frame specifying the study population. This data frame will have the following columns:
A unique identifier for an exposure
The person ID of the subject
The index date
The number of outcomes observed during the risk window
The number of days in the risk window
The number of days until either the outcome or the end of the risk window
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.