R/ExtractData.R
createRestrictPlpDataSettings.Rd
This function creates the settings used to restrict the target cohort when calling getPlpData
createRestrictPlpDataSettings(
studyStartDate = "",
studyEndDate = "",
firstExposureOnly = F,
washoutPeriod = 0,
sampleSize = NULL
)
A calendar date specifying the minimum date that a cohort index date can appear. Date format is 'yyyymmdd'.
A calendar date specifying the maximum date that a cohort index date can appear. Date format is 'yyyymmdd'. Important: the study end data is also used to truncate risk windows, meaning no outcomes beyond the study end date will be considered.
Should only the first exposure per subject be included? Note that
this is typically done in the createStudyPopulation
function,
but can already be done here for efficiency reasons.
The mininum required continuous observation time prior to index
date for a person to be included in the at risk cohort. Note that
this is typically done in the createStudyPopulation
function,
but can already be done here for efficiency reasons.
If not NULL, the number of people to sample from the target cohort
A setting object of class restrictPlpDataSettings
containing a list getPlpData extra settings
Users need to specify the extra restrictions to apply when downloading the target cohort