createCohortBasedCovariateSettings {FeatureExtraction} | R Documentation |
Create settings for covariates based on other cohorts
Description
Create settings for covariates based on other cohorts
Usage
createCohortBasedCovariateSettings(
analysisId,
covariateCohortDatabaseSchema = NULL,
covariateCohortTable = NULL,
covariateCohorts,
valueType = "binary",
startDay = -365,
endDay = 0,
includedCovariateIds = c(),
warnOnAnalysisIdOverlap = TRUE
)
Arguments
analysisId |
A unique identifier for this analysis. |
covariateCohortDatabaseSchema |
The database schema where the cohorts used to define the covariates
can be found. If set to |
covariateCohortTable |
The table where the cohorts used to define the covariates
can be found. If set to |
covariateCohorts |
A data frame with at least two columns: 'cohortId' and 'cohortName'. The
cohort ID should correspond to the |
valueType |
Either 'binary' or 'count'. When |
startDay |
What is the start day (relative to the index date) of the covariate window? |
endDay |
What is the end day (relative to the index date) of the covariate window? |
includedCovariateIds |
A list of covariate IDs that should be restricted to. |
warnOnAnalysisIdOverlap |
Warn if the provided 'analysisId' overlaps with any predefined analysis as available in the 'createCovariateSettings()' function. |
Details
Creates an object specifying covariates to be constructed based on the presence of other cohorts.
Value
An object of type covariateSettings
, to be used in other functions.