R/AggregateCovariates.R
createAggregateCovariateSettings.Rd
Create aggregate covariate study settings
createAggregateCovariateSettings(
targetIds,
outcomeIds,
minPriorObservation = 0,
riskWindowStart = 1,
startAnchor = "cohort start",
riskWindowEnd = 365,
endAnchor = "cohort start",
covariateSettings,
minCharacterizationMean = 0
)
A list of cohortIds for the target cohorts
A list of cohortIds for the outcome cohorts
The minimum time in the database a patient in the target cohorts must be observed prior to index
The start of the risk window (in days) relative to the `startAnchor`.
The anchor point for the start of the risk window. Can be `"cohort start"` or `"cohort end"`.
The end of the risk window (in days) relative to the `endAnchor`.
The anchor point for the end of the risk window. Can be `"cohort start"` or `"cohort end"`.
An object created using FeatureExtraction::createCovariateSettings
The minimum mean value for characterization output. Values below this will be cut off from output. This will help reduce the file size of the characterization output, but will remove information on covariates that have very low values. The default is 0.
A list with the settings