Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: RE: -esttab- with ivreg2
From
Michael Betz <[email protected]>
To
"[email protected]" <[email protected]>
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: [email protected] [mailto:[email protected]] On Behalf Of Michael Betz
Sent: Monday, October 22, 2012 11:05 AM
To: [email protected]
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/