Hello
I am trying to run the following IV regression in the do file but getting the error message please.
Error
. outreg2 ed using "abc.csv", stats(coef se) bdec(3) replace addstat(Mean of Dependent Variable, r(mean), First Stage F-Test,
> e(widstat))
invalid syntax
code
*IV ESTIMATES
xi: ivreg2 child_alive (ed=dum) run1 run2 i.child_birthyear i.child_sex i.year i.region i.urban if age_80>=9 & age_80<=20 & age_80~=14 & age_80~=15, r cluster(group age_80)
qui sum child_alive if e(sample)
outreg2 ed using "abc.csv", stats(coef se) bdec(3) replace addstat(Mean of Dependent Variable, r(mean), First Stage F-Test, e(widstat))
Please help me to resolve this issue
Thanks
I am trying to run the following IV regression in the do file but getting the error message please.
Error
. outreg2 ed using "abc.csv", stats(coef se) bdec(3) replace addstat(Mean of Dependent Variable, r(mean), First Stage F-Test,
> e(widstat))
invalid syntax
code
*IV ESTIMATES
xi: ivreg2 child_alive (ed=dum) run1 run2 i.child_birthyear i.child_sex i.year i.region i.urban if age_80>=9 & age_80<=20 & age_80~=14 & age_80~=15, r cluster(group age_80)
qui sum child_alive if e(sample)
outreg2 ed using "abc.csv", stats(coef se) bdec(3) replace addstat(Mean of Dependent Variable, r(mean), First Stage F-Test, e(widstat))
Please help me to resolve this issue
Thanks

Comment