I am attempting to define a cohort with the Capr package in R and incorporate an inclusion criteria rule for a patient’s age upon their entry into the cohort.
How would I go about doing this from a code standpoint? I see there is an age
function built into Capr, but I am unsure if/how it would be incorporated into Capr’s attrition
function.