Create covariate settings
createCovariateSettings( includeCovariateIds = NULL, excludeCovariateIds = NULL, label = "Covariates", stratifyById = TRUE, start = 0, addExposedDaysToStart = FALSE, end = 0, addExposedDaysToEnd = FALSE, firstOccurrenceOnly = FALSE, splitPoints = c(), allowRegularization = FALSE )
includeCovariateIds | One or more IDs of variables in the |
---|---|
excludeCovariateIds | One or more IDs of variables in the |
label | A label used to identify the covariates created using these settings. |
stratifyById | Should a single covariate be created for every ID in the
|
start | The start of the risk window in days, relative to the exposure start date. |
addExposedDaysToStart | Should the length of exposure be added to the start date? |
end | The start of the risk window in days, relative to the exposure start date. |
addExposedDaysToEnd | Should the length of exposure be added to the end date? |
firstOccurrenceOnly | Should only the first occurrence of the exposure be used? |
splitPoints | To split the risk window into several smaller windows, specify the end of each sub- window relative to the start of the main risk window. If addExposedDaysToStart is TRUE, the split points will be considered to be relative to the end of the main risk window instead. |
allowRegularization | When fitting the model, should the covariates defined here be allowed to be regularized? |
An object of type covariateSettings
.
Create an object specifying how to create a (set of) covariates.