Generate model cohorts
generateModelCohort.Rd
Generate the cohort table for the outcome models
Usage
generateModelCohort(
connectionDetails,
cdmDatabaseSchema,
resultDatabaseSchema,
resultTable,
washoutPeriod,
maxObservationPeriod
)
Arguments
- connectionDetails
An R object of type
connectionDetails
.- cdmDatabaseSchema
The name of the database schema where the cdm database is located.
- resultDatabaseSchema
The name of the schema where the model cohort table will be stored. Need to have write priviliedges.
- resultTable
The name of the table that will contain the model cohorts
- washoutPeriod
The mininum required continuous observation time prior to index date for a person to be included in the model cohort.
- maxObservationPeriod
The maximum length of the observation period