Hi, I am having issues using the outreg2 command/estimates command. I have run a 3 regressions and stored each using the following code:
And a similar set of code (same dependent and independent variables) using a different dataset for 3 more estimates and saving them as m1 m2 and m3 (I clear the original dataset say dataset A and then load dataset B, clearing A). I am trying to run the command:
but Stata reports the error: "variable _est_w1 not found" r(111) which makes sense as the estimate is saved and not in the variables environment. So I try to ameliorate this by using:
to which I get another error message: "estimation result w1 not found" r(111). The regression estimates are saved as .ster files in my directory.
My main questions are: how do I properly store regression estimates so that I can recall them into the environment and use like regular post-regression estimates?
Code:
quietly xtreg yield co2 co2_2 temp temp_2 co2_temp, fe estimates save w1, replace quietly xtreg yield co2 co2_2 temp temp_2 co2_temp rgdpo_pc, fe estimates save w2, replace quietly xtreg yield co2 co2_2 temp temp_2 co2_temp rgdpo_pc hc, fe estimates save w3, replace
Code:
outreg2 [w1 w2 w3 m1 m2 m3] using table1, tex replace tfmt(type) ctitle("(1)";"(2)";"(3)";"(4)";"(5)";"(6)")
Code:
estimates restore w1
My main questions are: how do I properly store regression estimates so that I can recall them into the environment and use like regular post-regression estimates?
Comment