Criteria to use to select individual matches for cases.
createMatchingCriteria(
controlsPerCase = 1,
matchOnAge = TRUE,
ageCaliper = 2,
matchOnGender = TRUE,
matchOnProvider = FALSE,
matchOnCareSite = FALSE,
matchOnVisitDate = FALSE,
visitDateCaliper = 30,
matchOnTimeInCohort = FALSE,
daysInCohortCaliper = 30,
removedUnmatchedCases = TRUE,
seed = 1
)
Maximum number of controls to select per case.
Match on age?
Maximum difference (in years) in age when matching on age.
Match on gender?
Match on provider (as specified in the person table)?
Match on care site (as specified in the person table)?
Should the index date of the control be changed to the nearest visit date?
Maximum difference (in days) between the index date and the visit date when matching on visit date.
Match on time in nesting cohort? When not using nesting, this is interpreted as time observed prior to index.
Maximum difference (in days) in time in cohort.
Should cases with no matched controls be removed?
The number generator seed. A null value sets seed via Sys.time
.
A settings object to be used in the selectControls
function.