I currently am preparing a cohort data analysis and would like to apply the following restrictions.
Participants enter the cohort on their 45th birthday and stay in the cohort for 5 years after their first hospital visit for CHD. I want participants to be present in the study from their 40th birthday (5 year period before cohort entry). Unsure how to proceed with this in R if i am working with birth dates as a proxy for age.
Hope this question is appropriate to ask here. Any suggestions welcome.
Thanks!