Option 1
Code:
foreach i in 2009 2010 2011 2012 2015 2016 2017 2018 2019 { reg test_score i.DISAB i.race i.female i.FRPL if year==`i' margins i.DISAB est store m`i' }
Option 2
Code:
reg test_score (i.DISAB i.race i.female i.FRPL)##(year) margins i.DISAB#year marginsplot, xdim(year)
The end results from the two options are very similar (maybe with tiny differences in 2011 & 2012 for Disab=0).
I'd like to know if the two specifications are equivalent in achieving the goal (i.e., plotting the predicted score over time).
Given they produce very similar results (although not exactly the same), is one more correct than the other? Is there any violation of the assumptions required for OLS here?
Thank you!
0 Response to Pooled OLS with year interaction vs. OLS by year
Post a Comment