Hello,
In my current project, I need to test whether a coefficient in my regression is significantly different from 1 (not from 0). I realize that I can obtain this information by simply running the regression and running a test on the coefficient afterwards, but I was hoping there would be a different method that actually incorporates this test into the regression table. This would be extrodinarily useful because I have been using esttab to create Latex tables from my regressions.
My code is as follows:
As is, this code produces a table in which coefficients are starred if they are significantly different from 0, and I can separately report whether the var2 coefficient is significantly different from 1. Is there any way that I can combine the regression and the test to automatically report the results of that test in the table itself?
Any help would be very much appreciated.
Thanks,
Sarah
In my current project, I need to test whether a coefficient in my regression is significantly different from 1 (not from 0). I realize that I can obtain this information by simply running the regression and running a test on the coefficient afterwards, but I was hoping there would be a different method that actually incorporates this test into the regression table. This would be extrodinarily useful because I have been using esttab to create Latex tables from my regressions.
My code is as follows:
Code:
eststo: xi: xtreg var1 var2 var3 i.year, fe test var2 = 1 . . . esttab using table.tex, drop(_Iyear*) stats(N) cells(b(star fmt(2)) se(par)) replace
Any help would be very much appreciated.
Thanks,
Sarah
Comment