Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Beatrice Crozza <beatrice.crozza@gmail.com> |
To | statalist <statalist@hsphsun2.harvard.edu> |
Subject | st: Outreg2 addstat- how many macros? |
Date | Tue, 23 Aug 2011 11:49:32 +0100 |
Dear All, I wrote this code for outreg2: reg AI1 SI1 est store a test( _cons=0) (SI1=1) local F1=r(F) local p1= r(p) reg AI2 SI2 est store b test( _cons=0) (SI2=1) local F2=r(F) local p2= r(p) reg AI3 SI3 est store c test( _cons=0) (SI3=1) local F3=r(F) local p3= r(p) reg AI4 SI4 est store d test( _cons=0) (SI4=1) local F4=r(F) local p4= r(p) reg AI5 SI5 est store e test( _cons=0) (SI5=1) local F5=r(F) local p5= r(p) outreg2 [a b c d e] using 1test, stats (coef, tstat) addstat(Test 1 F, `F1', Test 2 F, `F2' , Test 3 F, `F3', Test 4 F `F4', Test 5 F`r(F)', `p1' `p2' `p3' `p4' `p5', `r(p)') bdec(3) tdec(2) pdec(3) tex replace I receive the error message invalid syntax, however, it works perfectly fine if I use only three regressions. Is this the maximum number of regressions that can I use? Thanks, Bea * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/