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" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Christoph Carl
Basten
Sent: Tuesday, November 18, 2008 10:54 AM
To: statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index