Create a study population
createStudyPopulation(sccsData, outcomeId = NULL, createStudyPopulationArgs)
A list
specifying the study population, with the following items:
cases
: A tibble
with one row per observation period of a person with the outcome.
outcomes
: A tibble
listing the days when a case has the outcome.
metaData
: A list
with meta data about the study population, including the attrition.
An object of type SccsData as created using the getDbSccsData function.
The outcome to create the era data for. If not specified it is assumed to be the one outcome for which the data was loaded from the database.
An object of type CreateStudyPopulationArgs
as created using the
createCreateStudyPopulationArgs()
function.
Create a study population for a specific outcome, applying several restrictions.