Statalist


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

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


From   Tim Wade <wadetj@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 16:00:33 -0400

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/



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