Creates a covariate settings object for generating only those covariates that will be included in a
table 1. This function works by filtering the covariateSettings
object for the covariates in
the specifications
object.
createTable1CovariateSettings(
specifications = getDefaultTable1Specifications(),
covariateSettings = createDefaultCovariateSettings(),
includedCovariateConceptIds = c(),
addDescendantsToInclude = FALSE,
excludedCovariateConceptIds = c(),
addDescendantsToExclude = FALSE,
includedCovariateIds = c()
)
A specifications object for generating a table using the
createTable1
function.
The covariate settings object to use as the basis for the filtered covariate settings.
A list of concept IDs that should be used to construct covariates.
Should descendant concept IDs be added to the list of concepts to include?
A list of concept IDs that should NOT be used to construct covariates.
Should descendant concept IDs be added to the list of concepts to exclude?
A list of covariate IDs that should be restricted to.
A covariate settings object, for example to be used when calling the
getDbCovariateData
function.
# \donttest{
table1CovSettings <- createTable1CovariateSettings(
specifications = getDefaultTable1Specifications(),
covariateSettings = createDefaultCovariateSettings(),
includedCovariateConceptIds = c(),
addDescendantsToInclude = FALSE,
excludedCovariateConceptIds = c(),
addDescendantsToExclude = FALSE,
includedCovariateIds = c()
)
# }