Hi Anyone,
I am intending to estimate a GLS RE model (I have STATA 13.0 so I think I can either use mixed or xtreg, with the same results). I have within-person longitudinal data, 11 years of it, and my outcome (average student attendance rate in school) , and time-invariant control variables (like race, sex) as well as time-varying control vars (such as family poverty status). My main IV is the number of years that a student was exposed to the intervention, introduced in the middle of my 11-year time span. I'd like to see the linear relationship between years of implementation (pre and post) and the outcome, which is individuals' average attendance rate. Thus, I have centered the number_of_years_implementing variable on the year in which the intervention was introduced.
Does this approach seem correct? And if yes, is it also feasible to introduce fixed-effect dummies for each year? My final model command looks like this:
xtreg avg_daily_attend y0405 y0506 y0708 y0809 y0910 y1011 y1112 y1213 y1314 y1415 var1 var2 var3 var4 var5 years_into_intervention
where avg_daily_attend ranges between 1-100
where y0405...y1415 are the year dummy vars (with the start of the intervention year excluded)
where var1, var2, and var3 are time-invariant and
where var4 and var5 are time-varying, and
where years_into_intervention is my primary IV
I just wanted to get some input from someone with more experience doing this. No one around my office seems to be able to serve as my sounding board today!
Thanks in advance!
Jane
I am intending to estimate a GLS RE model (I have STATA 13.0 so I think I can either use mixed or xtreg, with the same results). I have within-person longitudinal data, 11 years of it, and my outcome (average student attendance rate in school) , and time-invariant control variables (like race, sex) as well as time-varying control vars (such as family poverty status). My main IV is the number of years that a student was exposed to the intervention, introduced in the middle of my 11-year time span. I'd like to see the linear relationship between years of implementation (pre and post) and the outcome, which is individuals' average attendance rate. Thus, I have centered the number_of_years_implementing variable on the year in which the intervention was introduced.
Does this approach seem correct? And if yes, is it also feasible to introduce fixed-effect dummies for each year? My final model command looks like this:
xtreg avg_daily_attend y0405 y0506 y0708 y0809 y0910 y1011 y1112 y1213 y1314 y1415 var1 var2 var3 var4 var5 years_into_intervention
where avg_daily_attend ranges between 1-100
where y0405...y1415 are the year dummy vars (with the start of the intervention year excluded)
where var1, var2, and var3 are time-invariant and
where var4 and var5 are time-varying, and
where years_into_intervention is my primary IV
I just wanted to get some input from someone with more experience doing this. No one around my office seems to be able to serve as my sounding board today!
Thanks in advance!
Jane
Comment