Hello,
I have two different datasets, in the first one i have a ID identifier for each person and the date of birth ( i used the command date). Then, i have a second dataset in which each observation is a different day for different air pollution variables (CO, PM10 etc). What i want to do is to assign for each ID in my first dataset the mean of the air pollution variable for the 30 days before the date of birth.
I hope someone can help me out with this one, and any type of information on how i could procede it would be very helpful.
Thanks for the time!
Sebastian
Related Posts with How to assign different Treatment depending on the date of birth
The indenpendent variable has two catagories. Which model can I use to analyse the effect of denpendent variables on it?Dear statalist users: My indenpendent variable has two catagories. One is theft case and the other i…
stcrreg and univariable analysisHello everyone, I am getting started and was wondering what would be the best way to approach categ…
Means TestHi everyone I know that perhaps I should not ask this question here. But I hope you can help me. I w…
tuples:observation numbers out of rangewhen the items are more than 10, it will cause the problem of observation numbers out of range, can …
Difference in difference testing pre-treatment trendDear Statalist community, I'm using the difference-in-difference technique to investigate the impac…
Subscribe to:
Post Comments (Atom)
0 Response to How to assign different Treatment depending on the date of birth
Post a Comment