Hi,
I want to implement difference-in-difference on a cross-sectional dataset by group averages ( eg: birth cohorts in states) as shown in this paper (attached).
So my basic regression is for individual i, living in state s, born in year t, so rather than this I want to get a group average where I will get it by birth cohorts in state s. I made the average of the outcome variable and ran the regression but I don't think that is how it should be done. I believe that if I am doing a group average then the no of observation should also decrease as it is not on an individual level but rather on a group level.
Can anyone please help me with the STATA loop code?
I am a neophyte, please do forgive me if I am not on point.
Thanks in advance. Looking forward.
Cheers,
A
I want to implement difference-in-difference on a cross-sectional dataset by group averages ( eg: birth cohorts in states) as shown in this paper (attached).
So my basic regression is for individual i, living in state s, born in year t, so rather than this I want to get a group average where I will get it by birth cohorts in state s. I made the average of the outcome variable and ran the regression but I don't think that is how it should be done. I believe that if I am doing a group average then the no of observation should also decrease as it is not on an individual level but rather on a group level.
Can anyone please help me with the STATA loop code?
I am a neophyte, please do forgive me if I am not on point.
Thanks in advance. Looking forward.
Cheers,
A
Comment