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   richard boylan <[email protected]>
To   [email protected]
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<[email protected]> 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<[email protected]> 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<[email protected]> 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/



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