Statalist


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

st: RE: How to Export first-stage of IV (e.g. with ivreg2) to Latex (e.g. with outreg2) ?


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: How to Export first-stage of IV (e.g. with ivreg2) to Latex (e.g. with outreg2) ?
Date   Tue, 18 Nov 2008 14:51:50 +0100

You could quick and dirty

***********
use http://fmwww.bc.edu/ec-p/data/hayashi/griliches76.dta
xi i.year
reg iq  s expr tenure rns smsa _I* med kww age mrt
outreg2 using myfile, replace
ivreg2 lw s expr tenure rns smsa _I* (iq=med kww age mrt), first
outreg2 using myfile, see
***********

Not particularly convenient, but seems to work...


HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Christoph Carl
Basten
Sent: Tuesday, November 18, 2008 10:54 AM
To: [email protected]
Subject: st: How to Export first-stage of IV (e.g. with ivreg2) to Latex
(e.g. with outreg2) ?

Dear Statalist users,

does anyone know how to export also the first stage of an IV regression 
to Latex documents?

Specifically, I was using   "ivreg2, first" for my estimation,
and outreg2 to export the results,
but despite using ", first" as estimation option, outreg2 exported only 
the second stage.

Googling around the Forum led me to a way to store specific statistics 
of the first-stage as macro,
which I could then export with addstat,
but I haven't yet found a way to export the whole first-stage.

Many thanks,
C

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index