Suppose I have a panel dataset over two years, and I run a regression model of Y = a + X*B1 + e separately for year 1 and year 2. I want to understand whether the parameter B1 is different in year 1 from year 2 at a statistically significant level. Based on my online search, it appears that I can use "estimates store" along with the "suest" command to run this comparison, as shown below. I was wondering if this is the proper command to be used for a task such as this? If so, what description would be used for such a test (is it a t-test, chow test, etc.)? Thanks!
reg y x if y == 2002
estimates store y2002
reg y x if y == 2003
estimates store y2003
suest y2002 y2003
test _b[y2002_mean:x] = _b[y2003_mean:x]
reg y x if y == 2002
estimates store y2002
reg y x if y == 2003
estimates store y2003
suest y2002 y2003
test _b[y2002_mean:x] = _b[y2003_mean:x]
Comment