<>
Works for me with the following code:
*************
use /*
*/ http://fmwww.bc.edu/ec-p/data/hayashi/griliches76.dta, /*
*/ clear
xi i.year
ivreg2 lw s expr tenure rns smsa _I* /*
*/ (iq=med kww age mrt), gmm
outreg2 using ///
finalres, excel nolabel bdec(2) ti(GMM Regression Results with Country ///
Dummies) addstat (Cragg-Donald Stat., e(cdf), P-value Hansen test, e(jp))
///
stats(aster coef se) replace
*************
and
. which ivreg2
c:\ado\plus\i\ivreg2.ado
*! ivreg2 2.2.09 17jul2008
*! authors cfb & mes
*! see end of file for version comments
. which outreg2
c:\ado\plus\o\outreg2.ado
*! outreg2 2.1.3 21oct2009 by [email protected]
*! based on outreg 3.0.6/4.0.0 by [email protected]
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
[email protected]
Gesendet: Montag, 26. Oktober 2009 02:02
An: [email protected]
Betreff: st: help on outreg2
Hi, When I run the following regression, for some reason outreg2 doesn't
report e(cdf) and e(jp)? They appear as text in the output (e.g. e(cdf) and
e(jp), cdf and jp are not replaced by the statistics). This code used to
work with outreg which was replaced by outreg2 later. Please help Thanks
nese
xi: ivreg2 dlgovcons (dlrgdp =dlimpdem) $cdum, gmm outreg2 dlrgdp using
finalres, excel nolabel bdec(2) ti(GMM Regression Results with Country
Dummies) addstat (Cragg-Donald Stat., e(cdf), P-value Hansen test, e(jp))
stats(aster coef se) replace
*
* 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/
*
* 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/