Dear all,
I have a model with several variables that I instrument for.
I run a ivreghdfe model and use the first command to report my output. This workes perfectly. The issue is, that I also try to report statistics, such as the adjusted Rsquared.
Unfortunatly, when running my command, the same adjusted R is reported for every of the instrumented variables. However, they should differ. I tryed the append command (simular as if i loop over regressions) , which did not work out. Can someone help me with my misstake here? My code is:
eststo m1: ivreghdfe endog_var exog_var(Instrumeted1 Instrumeted2 Instrumeted3= Instrument1 Instrument2 Instrument3) , first savefirst savefprefix(s1)
qui reg `e(instd)' `e(insts)' if e(sample)
local r2a= e(r2_a)
est restore m1
estadd scalar r2a = `r2a': s1*
esttab s1* using file.tex, replace ///
stats(r2a , labels( "Adj. R2" )) ///
compress star(+ 0.10 * 0.05 ** 0.01 *** 0.001) scalars(N) b(4)
I have a model with several variables that I instrument for.
I run a ivreghdfe model and use the first command to report my output. This workes perfectly. The issue is, that I also try to report statistics, such as the adjusted Rsquared.
Unfortunatly, when running my command, the same adjusted R is reported for every of the instrumented variables. However, they should differ. I tryed the append command (simular as if i loop over regressions) , which did not work out. Can someone help me with my misstake here? My code is:
eststo m1: ivreghdfe endog_var exog_var(Instrumeted1 Instrumeted2 Instrumeted3= Instrument1 Instrument2 Instrument3) , first savefirst savefprefix(s1)
qui reg `e(instd)' `e(insts)' if e(sample)
local r2a= e(r2_a)
est restore m1
estadd scalar r2a = `r2a': s1*
esttab s1* using file.tex, replace ///
stats(r2a , labels( "Adj. R2" )) ///
compress star(+ 0.10 * 0.05 ** 0.01 *** 0.001) scalars(N) b(4)

Comment