Create case-control data
createCaseControlData(
caseControlsExposure,
exposureId,
firstExposureOnly = FALSE,
riskWindowStart = 0,
riskWindowEnd = 0,
exposureWashoutPeriod = 0
)
An object of type caseControlsExposure
as created using the
getDbExposureData
function.
The identifier of the exposure.
Should only the first exposure per subject be included?
The start of the risk window (in days) relative to the index date. This number should be non-positive.
The end of the risk window (in days) relative to the index date. This number should be non-positive.
Minimum required numbers of days of observation for inclusion of an exposure.
A data frame with these columns:
The person ID
The index date
Is the person a case or a control?
The ID linking cases and controls in a matched set
Was the subject exposed during the risk window?
For each case and control, assesses whether exposure takes place within the risk window. The output can be directly used in a conditional logistic regression.