View source: R/AdditionalCovariates.R
createCohortCovariateSettings | R Documentation |
Extracts covariates based on cohorts
createCohortCovariateSettings(
cohortName,
settingId,
cohortDatabaseSchema,
cohortTable,
cohortId,
startDay = -30,
endDay = 0,
count = F,
ageInteraction = F,
lnAgeInteraction = F,
analysisId = 456
)
cohortName |
Name for the cohort |
settingId |
A unique id for the covariate time and |
cohortDatabaseSchema |
The schema of the database with the cohort |
cohortTable |
the table name that contains the covariate cohort |
cohortId |
cohort id for the covariate cohort |
startDay |
The number of days prior to index to start observing the cohort |
endDay |
The number of days prior to index to stop observing the cohort |
count |
If FALSE the covariate value is binary (1 means cohort occurred between index+startDay and index+endDay, 0 means it did not) If TRUE then the covariate value is the number of unique cohort_start_dates between index+startDay and index+endDay |
ageInteraction |
If TRUE multiple covariate value by the patient's age in years |
lnAgeInteraction |
If TRUE multiple covariate value by the log of the patient's age in years |
analysisId |
The analysisId for the covariate |
The user specifies a cohort and time period and then a covariate is constructed whether they are in the cohort during the time periods relative to target population cohort index
An object of class covariateSettings specifying how to create the cohort covariate with the covariateId cohortId x 100000 + settingId x 1000 + analysisId
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.