Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Completely new version of -outreg-


From   Richard Williams <richardwilliams.ndu@gmail.com>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: Completely new version of -outreg-
Date   Thu, 28 Jul 2011 11:33:45 -0500

At 09:12 AM 7/28/2011, Ricardo Ovaldia wrote:
I tryed using the new -outreg-, but I get an error.
Are there additional programs that I need to download?

. sysuse auto, clear
(1978 Automobile Data)

. reg mpg foreign weight

Source | SS df MS Number of obs = 74
-------------+------------------------------           F(  2,    71) =   69.75
Model | 1619.2877 2 809.643849 Prob > F = 0.0000 Residual | 824.171761 71 11.608053 R-squared = 0.6627
-------------+------------------------------           Adj R-squared =  0.6532
Total | 2443.45946 73 33.4720474 Root MSE = 3.4071

------------------------------------------------------------------------------
mpg | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
foreign | -1.650029 1.075994 -1.53 0.130 -3.7955 .4954422 weight | -.0065879 .0006371 -10.34 0.000 -.0078583 -.0053175 _cons | 41.6797 2.165547 19.25 0.000 37.36172 45.99768
------------------------------------------------------------------------------

. outreg
              MakeSmat():  3499  _CColJoin() not found
             CalcStats():     -  function returned error
                 <istmt>:     -  function returned error
r(3499);

Works for me on Stata 11.2. As always, make sure everything you have is up to date.

. sysuse auto, clear
(1978 Automobile Data)

. reg mpg foreign weight

      Source |       SS       df       MS              Number of obs =      74
-------------+------------------------------           F(  2,    71) =   69.75
       Model |   1619.2877     2  809.643849           Prob > F      =  0.0000
    Residual |  824.171761    71   11.608053           R-squared     =  0.6627
-------------+------------------------------           Adj R-squared =  0.6532
       Total |  2443.45946    73  33.4720474           Root MSE      =  3.4071

------------------------------------------------------------------------------
         mpg |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     foreign |  -1.650029   1.075994    -1.53   0.130      -3.7955    .4954422
      weight |  -.0065879   .0006371   -10.34   0.000    -.0078583   -.0053175
       _cons |    41.6797   2.165547    19.25   0.000     37.36172    45.99768
------------------------------------------------------------------------------

. outreg

                                                                          ----------------------
mpg
                                                                          ----------------------
foreign -1.650 (1.53) weight -0.007 (10.34)** _cons 41.680 (19.25)** R2 0.66 N 74
                                                                          ----------------------
* p<0.05; ** p<0.01



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

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