Hello, everyone
I'm in doubt about how to define age ranges to run regression models across age ranges in a cohort dataset. More specifically, my data comprises individuals who entered into a specific cohort between 2008-2018, and, furthermore, this dataset was used as a reference to merge with hospitalization information from another source of data by the id number.
My data looks like this bellow
This way, my next step is to calculate determinants of hospitalization among individuals in specific age ranges (i.e 0-10; 11-20; 21-30; 31-40; 41-50, etc), but I'm not so sure about how to do that regarding the fact that we have people who entered into the cohort in different periods, at different ages and was admitted in different periods of time. Additionally, as you can see in the example above, in my dataset I also have some individuals who have not been admitted.
Does anyone help me to solve that?
I'm in doubt about how to define age ranges to run regression models across age ranges in a cohort dataset. More specifically, my data comprises individuals who entered into a specific cohort between 2008-2018, and, furthermore, this dataset was used as a reference to merge with hospitalization information from another source of data by the id number.
My data looks like this bellow
id | Year of Entry | Age of Entry | Year of Birth | Hospitalization Year | Age of Hospitalization |
1 | 2008 | 8 | 2000 | 2009 | 9 |
2 | 2009 | 10 | 1999 | . | . |
3 | 2011 | 40 | 1971 | 2015 | 44 |
4 | 2015 | 20 | 1995 | 2017 | 22 |
5 | 2016 | 30 | 1986 | . | . |
Does anyone help me to solve that?
Comment