Dear Listers
I have a data-set that can be illustrated with the following: id, date_of_vaccination, date_of_infections.
Now in a self-controlled-case-series. I would like to count the number of infections 1 year prior to vaccinations and 1year after the vaccinations.
So my question is two fold.
1) how do i best keep observations in the window of interest?
2) is there a way that i can pr id generate a pre/post grouping variable based on the date of vaccination?
I guess I need to stress that the date_of_vaccination is different for each id.
Hope i made my self somewhat understandable.
Best,
Lars
I have a data-set that can be illustrated with the following: id, date_of_vaccination, date_of_infections.
Now in a self-controlled-case-series. I would like to count the number of infections 1 year prior to vaccinations and 1year after the vaccinations.
So my question is two fold.
1) how do i best keep observations in the window of interest?
2) is there a way that i can pr id generate a pre/post grouping variable based on the date of vaccination?
I guess I need to stress that the date_of_vaccination is different for each id.
Hope i made my self somewhat understandable.
Best,
Lars
Comment