This function executes a large set of SQL statements against the database in OMOP CDM format to extract the data needed to perform the analysis.
Arguments
- databaseDetails
The cdm database details created using
createDatabaseDetails()- covariateSettings
An object of type
covariateSettingsor a list of such objects as created using thecreateCovariateSettingsfunction in theFeatureExtractionpackage.- restrictPlpDataSettings
Extra settings to apply to the target population while extracting data. Created using
createRestrictPlpDataSettings(). This is optional.
Details
Based on the arguments, the at risk cohort data is retrieved, as well as outcomes
occurring in these subjects. The at risk cohort is identified through
user-defined cohorts in a cohort table either inside the CDM instance or in a separate schema.
Similarly, outcomes are identified
through user-defined cohorts in a cohort table either inside the CDM instance or in a separate
schema. Covariates are automatically extracted from the appropriate tables within the CDM.
If you wish to exclude concepts from covariates you will need to
manually add the concept_ids and descendants to the excludedCovariateConceptIds of the
covariateSettings argument.