Function age_at_index
age_at_index.Rd
The age_at_index function calculates the age at an already defined index date of all patients in a cohort.
Arguments
- database
database name to use
- index_date
user defined table with two columns
patient id
index_date