Hi all, I am conducting some analysis using an unbalanced panel dataset.
I am using outreg2 to set up a table with three models where I conduct fixed effect regression and I would like to do an identical but seperate table using random effects regression.
I am using the following code to create a word document displaying three different fixed effect models without time fixed effects and the same three fixed effect models but now including time fixed effects. This part works fine.
And get this:

To create the second table with random effects regression I use the following code
And get this:

I have a few questions regarding the above
1. I would like to include r2 in my table with random effects models, however when trying to include "adjr2" I get the following error: "Adjusted R-squared (e(r2_a)) not defined; cannot use adjr2 option"
2. Is there anyway I can include both within, between, and overall r2 using outreg2?
3. How is time fixed effect coefficients to be interpreted?
Thank you in advance
Best
Oskar
I am using outreg2 to set up a table with three models where I conduct fixed effect regression and I would like to do an identical but seperate table using random effects regression.
I am using the following code to create a word document displaying three different fixed effect models without time fixed effects and the same three fixed effect models but now including time fixed effects. This part works fine.
Code:
. xtreg dg1 $xlist Risk , fe vce(cluster ID) outreg2 using Diffgrowth, word dec (3) replace ctitle(Diff Growth FY1) addtext(State FE, Yes, Year FE, No) adjr2 . xtreg dg2 $xlist Risk , fe vce(cluster ID) outreg2 using Diffgrowth, word dec (3) append ctitle(Diff Growth FY2) addtext(State FE, Yes, Year FE, No) adjr2 . xtreg dg3 $xlist Risk , fe vce(cluster ID) outreg2 using Diffgrowth, word dec (3) append ctitle(Diff Growth FY3) addtext(State FE, Yes, Year FE, No) adjr2 . xtreg dg1 $xlist Risk i.T, fe vce(cluster ID) outreg2 using Diffgrowth, word dec (3) append ctitle(Diff Growth FY1) addtext(State FE, Yes, Year FE, Yes) adjr2 . xtreg dg2 $xlist Risk i.T, fe vce(cluster ID) outreg2 using Diffgrowth, word dec (3) append ctitle(Diff Growth FY2) addtext(State FE, Yes, Year FE, Yes) adjr2 . xtreg dg3 $xlist Risk i.T, fe vce(cluster ID) outreg2 using Diffgrowth, word dec (3) append ctitle(Diff Growth FY3) addtext(State FE, Yes, Year FE, Yes) adjr2
To create the second table with random effects regression I use the following code
Code:
. xtreg dg1 $xlist Risk , re vce(cluster ID) outreg2 using DiffgrowthRE, word dec (3) replace ctitle(Diff Growth FY1) addtext(State RE, Yes, Year FE, No) . xtreg dg2 $xlist Risk , re vce(cluster ID) outreg2 using DiffgrowthRE, word dec (3) append ctitle(Diff Growth FY2) addtext(State RE, Yes, Year FE, No) . xtreg dg3 $xlist Risk , re vce(cluster ID) outreg2 using DiffgrowthRE, word dec (3) append ctitle(Diff Growth FY3) addtext(State RE, Yes, Year FE, No) . xtreg dg1 $xlist Risk i.T, re vce(cluster ID) outreg2 using DiffgrowthRE, word dec (3) append ctitle(Diff Growth FY1) addtext(State RE, Yes, Year FE, Yes) . xtreg dg2 $xlist Risk i.T, re vce(cluster ID) outreg2 using DiffgrowthRE, word dec (3) append ctitle(Diff Growth FY2) addtext(State RE, Yes, Year FE, Yes) . xtreg dg3 $xlist Risk i.T, re vce(cluster ID) outreg2 using DiffgrowthRE, word dec (3) append ctitle(Diff Growth FY3) addtext(State RE, Yes, Year FE, Yes)
I have a few questions regarding the above
1. I would like to include r2 in my table with random effects models, however when trying to include "adjr2" I get the following error: "Adjusted R-squared (e(r2_a)) not defined; cannot use adjr2 option"
2. Is there anyway I can include both within, between, and overall r2 using outreg2?
3. How is time fixed effect coefficients to be interpreted?
Thank you in advance
Best
Oskar
Comment