Create control interval settings
createControlIntervalSettings(
includeEraIds = NULL,
excludeEraIds = NULL,
start = 0,
startAnchor = "era start",
end = 0,
endAnchor = "era end",
firstOccurrenceOnly = FALSE
)
One or more IDs of variables in the SccsData object that should be used to construct this covariate. If no IDs are specified, all variables will be used.
One or more IDs of variables in the [SccsData] object that should not be used to construct this covariate.
The start of the control interval (in days) relative to the startAnchor
.
The anchor point for the start of the control interval. Can be "era start"
or "era end"
.
The end of the control interval (in days) relative to the endAnchor
.
The anchor point for the end of the control interval. Can be "era start"
or "era end"
.
Should only the first occurrence of the exposure be used?
An object of type ControlSettings
.
Create an object specifying how to create a control interval for the self-controlled risk interval (SCRI) design.