Hi,
I have a panel data of 147 countries from 1960 to 2010. I ran the following to export the results of my regression to a table:
qui xtreg lnGDPper high_frac_dem low_frac_dem lag1_lnGDPper lag2_lnGDPper lag3_lnGDPper lag4_lnGDPper i.year, fe vce(cluster country)
ttest low_frac_dem == high_frac_dem
return list
estadd scalar pval = r(p)
estadd local TwowayFixedEffects "Yes"
est sto tab3a_col1
esttab tab3a_col1 using Table_3a.rtf, replace label b(8) se(8) stats(pval N r2 TwowayFixedEffects, fmt(4 0 4 0) labels("p-value, H0:βL=βH" "Observations" "R2" "Two-way fixed effects")) keep (_cons low_frac_dem high_frac_dem lag1_lnGDPper lag2_lnGDPper lag3_lnGDPper lag4_lnGDPper) nomtitle onecell
1. Please tell me where to add 'r' in qui xtreg command line to get the adjusted R^2 value, so that I can report them in the table
2. I also want to include the number of countries included in the regression as a separate row
3. When I try copying the table in .rtf format to a word document, I'm getting formatting issues where the table on word looks like the following:

Could you please tell me if there is a way to directly export these regression results to word without the above issues or manual editing is the only way? I replaced .rtf in the above command with .docx, but a prompt says that word has identified unreadable format, making me unable to open it.
Thank you so much for your time!
I have a panel data of 147 countries from 1960 to 2010. I ran the following to export the results of my regression to a table:
qui xtreg lnGDPper high_frac_dem low_frac_dem lag1_lnGDPper lag2_lnGDPper lag3_lnGDPper lag4_lnGDPper i.year, fe vce(cluster country)
ttest low_frac_dem == high_frac_dem
return list
estadd scalar pval = r(p)
estadd local TwowayFixedEffects "Yes"
est sto tab3a_col1
esttab tab3a_col1 using Table_3a.rtf, replace label b(8) se(8) stats(pval N r2 TwowayFixedEffects, fmt(4 0 4 0) labels("p-value, H0:βL=βH" "Observations" "R2" "Two-way fixed effects")) keep (_cons low_frac_dem high_frac_dem lag1_lnGDPper lag2_lnGDPper lag3_lnGDPper lag4_lnGDPper) nomtitle onecell
1. Please tell me where to add 'r' in qui xtreg command line to get the adjusted R^2 value, so that I can report them in the table
2. I also want to include the number of countries included in the regression as a separate row
3. When I try copying the table in .rtf format to a word document, I'm getting formatting issues where the table on word looks like the following:
Could you please tell me if there is a way to directly export these regression results to word without the above issues or manual editing is the only way? I replaced .rtf in the above command with .docx, but a prompt says that word has identified unreadable format, making me unable to open it.
Thank you so much for your time!
Comment