Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: New SSC package -esta-: display formatted regression table


From   "Ben Jann" <[email protected]>
To   <[email protected]>
Subject   st: New SSC package -esta-: display formatted regression table
Date   Thu, 21 Sep 2006 12:35:50 +0200

Thanks to Kit Baum, a new package called -esta- is 
available from the SSC Archive.

-esta- is a wrapper for -estout-. It displays a 
pretty looking publication-style regression table 
from stored estimates without much typing (see 
example below).

The main intention behind -esta- is to have an 
easy-to-use front-end for -estout-. Most users
will find it more convenient to use -esta- than 
to use -estout-.

To install the package, type

 . ssc install esta

Note that the newest version of -estout- must be 
installed on your system in order to run -esta-.

-esta- is compatible with Stata 8.2 or newer.

Have fun,
ben


Example:

. sysuse auto
(1978 Automobile Data)

. quietly regress price weight mpg

. estimates store model1

. quietly regress price weight mpg foreign

. estimates store model2

. esta *, ar2

--------------------------------------------
                      (1)             (2)   
                    price           price   
--------------------------------------------
weight              1.747**         3.465***
                   (2.72)          (5.49)   

mpg                -49.51           21.85   
                  (-0.57)          (0.29)   

foreign                            3673.1***
                                   (5.37)   

_cons              1946.1         -5853.7   
                   (0.54)         (-1.73)   
--------------------------------------------
N                      74              74   
adj. R2             0.273           0.478   
--------------------------------------------
t/z-statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001

. esta *, ar2 label

----------------------------------------------------
                              (1)             (2)   
                            Price           Price   
----------------------------------------------------
Weight (lbs.)               1.747**         3.465***
                           (2.72)          (5.49)   

Mileage (mpg)              -49.51           21.85   
                          (-0.57)          (0.29)   

Car type                                   3673.1***
                                           (5.37)   

Constant                   1946.1         -5853.7   
                           (0.54)         (-1.73)   
----------------------------------------------------
Observations                   74              74   
Adjusted R-squared          0.273           0.478   
----------------------------------------------------
t/z-statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001

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