Create outcome definition
createOutcome(
outcomeId,
outcomeOfInterest = TRUE,
trueEffectSize = NA,
priorOutcomeLookback = NULL,
riskWindowStart = NULL,
startAnchor = NULL,
riskWindowEnd = NULL,
endAnchor = NULL
)
An integer used to identify the outcome in the outcome cohort table.
Is this an outcome of interest? If not, creation of non-essential files will be skipped, including outcome=specific covariate balance files. This could be helpful to speed up analyses with many controls, for which we're only interested in the effect size estimate.
For negative and positive controls: the known true effect size. To be used
for empirical calibration. Negative controls have trueEffectSize = 1
. If
the true effect size is unknown, use trueEffectSize = NA
How many days should we look back when identifying prior. outcomes?
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 of type outcome
, to be used in createTargetComparatorOutcomes()
.
Any settings here that are not NULL
will override any values set in createCreateStudyPopulationArgs()
.