Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: -gmm- and -outreg2-


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -gmm- and -outreg2-
Date   Wed, 15 Aug 2012 12:38:28 -0500

Perhaps I am not following, but in the first example -outreg2- (-ssc
desc outreg2-)  is outputting the results from -gmm- and the in second
example it is outputting the results from -ivreg2- (-ssc desc
ivreg2-).  Given that there are 17 equations in the gmm estimated
model and -outreg2-, by default, outputs each equation in a separate
column makes the display different than the output from -ivreg2-.
Perhaps you want -onecol- option on -outreg2-?

Scott


On Wed, Aug 15, 2012 at 9:54 AM, Joseph Monte <hmjc66@gmail.com> wrote:
> Richard,
>
> Here is an example:-
>
> use http://fmwww.bc.edu/ec-p/data/wooldridge/card, clear
> loc x "exper* smsa* south mar black reg662-reg669"
> ivpois wage `x', endog(educ) exog(nearc2 nearc4)
> gmm (wage*exp(-{xb:`x' educ}-{b0})-1), inst(`x' nearc2 nearc4)
> outreg2 using myfile, replace excel
>
> Is this how it is supposed to display? This output display is
> different from the one below.
>
> use http://fmwww.bc.edu/ec-p/data/wooldridge/card, clear
> loc x "exper* smsa* south mar black reg662-reg669"
> ivpois wage `x', endog(educ) exog(nearc2 nearc4)
> gmm (wage*exp(-{xb:`x' educ}-{b0})-1), inst(`x' nearc2 nearc4)
> estat overid
> ivreg2 lw `x' (educ=nearc2 nearc4)
> outreg2 using myfile, replace excel
>
> Thanks,
>
> Joe
>
*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index