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 on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: RE: -esttab- with ivreg2


From   Michael Betz <betz.40@buckeyemail.osu.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: -esttab- with ivreg2
Date   Mon, 22 Oct 2012 15:42:58 +0000

Sorry the formatting ran my code together on one line. It should be corrected below.

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Michael Betz
Sent: Monday, October 22, 2012 11:05 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: -esttab- with ivreg2

Hi,

I'm trying to create a table of the first-stage results from an instrumental variable regression using the user-written programs -ivreg2- and -estout-. As far as I understand, you can replace the point estimates in the table with contents in e() using the main option in esttab. -ivreg2- stores the first stage results in e(first), but I've having no luck getting -esttab- to put them in the table. Below is my code:

est clear

eststo _00: ivreg2 totpovrt00 totpovrt90 $mining90 $shchg90 $base90 $full90 st_* (mtmscquan90_00=maxsr1) if arc==1, robust first 

estadd scalar fstat =e(widstat)  

esttab _00*, main(first) r2 starl(* 0.1 ** 0.05 *** 0.01) sca(fstat) nogap nonum drop(st_*)  


Adding the scalar fstat works fine, but the table only reports the second stage t-stats in parenthesis below an empty cell for the main table results. Any thoughts?

Thanks,
Mike



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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