Statalist


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

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


From   "Schaffer, Mark E" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: RE: How to Export first-stage of IV (e.g. with ivreg2) to Latex (e.g. with outreg2) ?
Date   Tue, 18 Nov 2008 16:10:41 -0000

Martin, Christoph,

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Martin Weiss
> Sent: Tuesday, November 18, 2008 3:53 PM
> To: [email protected]
> Subject: st: RE: RE: How to Export first-stage of IV (e.g. 
> with ivreg2) to Latex (e.g. with outreg2) ?
> 
> Line for the server...
> 
> Well, at least it is not completely straightforward nor automatic...

In Martin's example, I think it's simply a case of inserting a line:
 
> *********
> use http://fmwww.bc.edu/ec-p/data/hayashi/griliches76.dta
> xi i.year
> cap erase myfile.txt
> ivreg2 lw s expr tenure rns smsa _I* (iq=med kww age mrt)
> outreg2 using myfile
> seeout using myfile.txt
> erase myfile.txt
> ivreg2 lw s expr tenure rns smsa _I* (iq=med kww age mrt), savefirst

est restore _ivreg2_iq

> outreg2 using myfile
> seeout using myfile.txt
> *********

Does that do what you want?

Cheers,
Mark

> 
> HTH
> Martin
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of 
> Schaffer, Mark E
> Sent: Tuesday, November 18, 2008 4:36 PM
> To: [email protected]
> Subject: st: RE: How to Export first-stage of IV (e.g. with 
> ivreg2) to Latex
> (e.g. with outreg2) ?
> 
> Christoph,
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[email protected]] On Behalf Of 
> > Christoph Carl Basten
> > Sent: Tuesday, November 18, 2008 9: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?
> 
> Will the -savefirst- option of -ivreg2- do what you need?
> 
> --Mark
> 
> > 
> > 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/
> > 
> 
> 
> -- 
> Heriot-Watt University is a Scottish charity
> registered under charity number SC000278.
> 
> 
> *
> *   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/
> 


-- 
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.


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