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

From |
richard boylan <richardtb25@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: latex table with estimation results reported in rows and coefficient estimates listed in columns |

Date |
Wed, 26 Aug 2009 22:18:33 -0500 |

This works. Thanks! On Wed, Aug 26, 2009 at 7:40 PM, Tim Wade<wadetj@gmail.com> wrote: > This modification will get the standard errors and the r2 statistic > below in parentheses using the user-written commands -estout-, > -listtex- and -sxpose-. Will need some fiddling to make look perfect. > > > sysuse auto.dta > regress price mpg > est store m1 > regress price mpg weight > est store m2 > regress price mpg weight length > est store m3 > estout m* using file1.txt, rename(_cons cons) stats(r2) cells("b > se(par(( )))") replace > insheet using file1.txt, clear > sxpose, clear > listtex, type rstyle(tabular) head("\begin{table}" "\begin{center}" > "\begin{tabular}{ccccccc}") foot("\end{tabular}" "\end{center}" > "\end{table}") > > > Tim > > > On Wed, Aug 26, 2009 at 4:00 PM, Tim Wade<wadetj@gmail.com> wrote: >> I have done this before using a combination of -listtex- and -sxpose- >> as suggested by others. Here is an example: >> >> sysuse auto.dta >> regress price mpg >> est store m1 >> regress price mpg weight >> est store m2 >> regress price mpg weight length >> est store m3 >> estout m* using file1.txt, rename(_cons cons) >> clear >> insheet using file1.txt >> sxpose, clear >> listtex, type rstyle(tabular) head("\begin{table}" "\begin{center}" >> "\begin{tabular}{cccccc}") foot("\end{tabular}" "\end{center}" >> "\end{table}") >> >> Tim >> >> >> On Wed, Aug 26, 2009 at 12:37 PM, richard boylan<richardtb25@gmail.com> wrote: >>> I was looking for a package to make latex table from regession >>> estimates except that I need the estimation results reported in rows >>> and coefficient estimates listed in columns. >>> >>> The only package that I could find that does that is est2tex, but when >>> one produces estimates in this horizontal format it suppresses the >>> r-squared and sample size. >>> >>> Does anyone know of any packages that allow this? I.e., I need >>> >>> >>> Coefficient 1 Coefficient 2 Sample >>> size R-squared >>> Reg 1 >>> >>> Reg 2 >>> * >>> * 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/ > * * 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/

**References**:**st: latex table with estimation results reported in rows and coefficient estimates listed in columns***From:*richard boylan <richardtb25@gmail.com>

**Re: st: latex table with estimation results reported in rows and coefficient estimates listed in columns***From:*Tim Wade <wadetj@gmail.com>

**Re: st: latex table with estimation results reported in rows and coefficient estimates listed in columns***From:*Tim Wade <wadetj@gmail.com>

- Prev by Date:
**Re: st: RE: latex table with estimation results reported in rows and coefficient estimates listed in columns** - Next by Date:
**st: extracting month and year from a date variable** - Previous by thread:
- Next by thread:
**st: Causality Panel Data** - Index(es):

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