Create a parameter object for the function getDbCohortMethodData
createGetDbCohortMethodDataArgs( studyStartDate = "", studyEndDate = "", excludeDrugsFromCovariates = TRUE, firstExposureOnly = FALSE, removeDuplicateSubjects = FALSE, restrictToCommonPeriod = FALSE, washoutPeriod = 0, maxCohortSize = 0, covariateSettings )
A calendar date specifying the minimum date that a cohort indexdate can appear. Date format is 'yyyymmdd'.
A calendar date specifying the maximum date that a cohort indexdate can appear. Date format is 'yyyymmdd'. Important: the studyend data is also used to truncate risk windows, meaning nooutcomes beyond the study end date will be considered.
Should the target and comparator drugs (and their descendantconcepts) be excluded from the covariates? Note that this willwork if the drugs are actualy drug concept IDs (and not cohortIDs).
Should only the first exposure per subject be included? Notethat this is typically done in the createStudyPopulationfunction, but can already be done here for efficiency reasons.
Remove subjects that are in both the target and comparatorcohort? See details for allowed values.N ote that this is typically done in thecreateStudyPopulation function, but can already be donehere for efficiency reasons.
Restrict the analysis to the period when both treatments are observed?
The mininum required continuous observation time prior to indexdate for a person to be included in the cohort. Note that thisis typically done in the createStudyPopulation function,but can already be done here for efficiency reasons.
If either the target or the comparator cohort is larger thanthis number it will be sampled to this size. maxCohortSize = 0indicates no maximum size.
An object of type covariateSettings as created using thecreateCovariateSettings function in theFeatureExtraction package.
Create an object defining the parameter values.