Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: appended tex-tables?


From   "Jan Pettersson" <[email protected]>
To   <[email protected]>
Subject   Re: st: appended tex-tables?
Date   Wed, 17 Mar 2004 16:39:36 +0100

Few options are better than none, it seems to work fine! Thanks!

----- Original Message ----- 
From: "G. Mark Holmes" <[email protected]>
To: <[email protected]>
Sent: Wednesday, March 17, 2004 4:27 PM
Subject: Re: st: appended tex-tables?


> I have hacked out an "outreg to .tex" conversion that I use.  It's
> cumbersome and has few options, but...
>
> net from http://www.unc.edu/~gholmes/stata
> net install tab2tex
> clear
> sysuse auto
>
> reg price mpg
> outreg using foo,replace
>
> reg price mpg foreign
> outreg using foo,append
>
> tab2tex using foo.out, saving(foo.tex , replace ) nofooter
>
> type foo.tex
>
>
> . type foo.tex
>                   &          (1) &          (2)  \\
>                   &        Price &        Price  \\
>     Mileage (mpg) &     -238.894 &     -294.196  \\
>                   &     (4.50)** &     (5.28)**  \\
>          Car type &              &    1,767.292  \\
>                   &              &      (2.52)*  \\
>          Constant &   11,253.061 &   11,905.415  \\
>                   &     (9.61)** &    (10.28)**  \\
>      Observations &           74 &           74  \\
>         R-squared &         0.22 &         0.28  \\
>
>
> m
>
>
> On Wed, 17 Mar 2004, Jan Pettersson wrote:
>
> > Dear all!
> >
> > I would like to use -outtex- to present regression results in a tex
table.
> > However, I have four regressions that I would like to append
horisontically,
> > as when using -outreg, append-, and outtex does not allow for this.
Since
> > cutting and pasting in tex-tables is fairly cumbersome, I guess the
> > alternative is to use parmest and then make a tex-table from that
output.
> > However, in this case, one would need some labour in order to get, say,
> > standard errors in parenthesis, and to appear below coefficient
estimates.
> >
> > Any suggestions would be appreciated.
> >
> > Kind regards,
> > Jan Pettersson
> >
> > *
> > *   For searches and help try:
> > *   http://www.stata.com/support/faqs/res/findit.html
> > *   http://www.stata.com/support/statalist/faq
> > *   http://www.ats.ucla.edu/stat/stata/
> >
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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