Create a parameter object for the function getDbCohortMethodData

createGetDbCohortMethodDataArgs(
studyStartDate = "",
studyEndDate = "",
excludeDrugsFromCovariates,
firstExposureOnly = FALSE,
removeDuplicateSubjects = FALSE,
restrictToCommonPeriod = FALSE,
washoutPeriod = 0,
maxCohortSize = 0,
covariateSettings
)

## Arguments

studyStartDate 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. DEPRECATED: Should the target and comparator drugs (and their descendant concepts) be excluded from the covariates? Note that this will work if the drugs are actually drug concept IDs (and not cohort IDs). 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. Remove subjects that are in both the target and comparator cohort? See details for allowed values.Note that this is typically done in the createStudyPopulation function, but can already be done here for efficiency reasons. Restrict the analysis to the period when both treatments are observed? The minimum required continuous observation time prior to index date for a person to be included in the cohort. Note that this is 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 than this number it will be sampled to this size. maxCohortSize = 0 indicates no maximum size. An object of type covariateSettings as created using the FeatureExtraction::createCovariateSettings() function.

## Details

Create an object defining the parameter values.