Hello,
In my regressions I have a dummy variable for industry, but it is a control and I don't want to report it in my table of regressions using outreg. Example of my problem:
I get the following Stata error: "1b.industry" in drop() not found in estimates", as this is the base category but it still tries to drop anyway.
A possible solution would be to write:
Which I'm trying to avoid, as in future regression I'll like to do this for a variable with 99 dummies.
I also a similar problem using coefplot. For the same regression, I'm typing:
Which fails to remove the dummy coefficients for industry. Again, a solution that I don't like would be to write
Does anyone have any suggestions?
Thanks in advance!
Hélder
In my regressions I have a dummy variable for industry, but it is a control and I don't want to report it in my table of regressions using outreg. Example of my problem:
Code:
sysuse nlsw88.dta reg wage i.married i.industry est store ols_1 outreg, clear est restore ols_1 outreg using regressions, tex replace /* */ drop(_cons i.industry) /* */ ctitle("","Model #1") /* */ nodisplay varlabels bdec(4) se starlevels(10 5 1) starloc(1) summstat(r2\rmse \ N) summtitle("R2"\"RMSE" \ "N")
A possible solution would be to write:
Code:
outreg, clear est restore ols_1 outreg using regressions, tex replace /* */ drop(_cons 2.industry 3.industry 4.industry 5.industry 6.industry 7.industry 8.industry 9.industry 10.industry 11.industry 12.industry) /* */ ctitle("","Model #1") /* */ nodisplay varlabels bdec(4) se starlevels(10 5 1) starloc(1) summstat(r2\rmse \ N) summtitle("R2"\"RMSE" \ "N")
I also a similar problem using coefplot. For the same regression, I'm typing:
Code:
coefplot, vertical drop(_cons i.industry) yline(0)
Code:
coefplot, vertical drop(_cons 2.industry 3.industry 4.industry 5.industry 6.industry 7.industry 8.industry 9.industry 10.industry 11.industry 12.industry) yline(0)
Thanks in advance!
Hélder
Comment