Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Outreg2 and R^2 in a column next to variables


From   John Luke Gallup <[email protected]>
To   [email protected]
Subject   Re: st: Outreg2 and R^2 in a column next to variables
Date   Wed, 17 Aug 2011 13:55:48 -0700

Bea,

I don't think added columns are implementable in -outreg2-.  You can do this in -outreg- (-ssc install outreg, replace-) with the following commands:

sysuse auto, clear
regress mpg weight foreign
loc R2 : display %4.2f `e(r2)'
loc F : display %4.1f `e(F)'
outreg, noautosumm addcols(Statistics \ R-squared \ `R2' \ F Test \ `F')

John

On Aug 17, 2011, at 4:22 AM, Beatrice Crozza wrote:

> Dear All,
> 
> I obtained a table in tex, after my regressions, with this code:
> 
> outreg2 [Full Restricted] using table, stats (coef, tstat)
> addstat(Test 1 F, `F1', Test 2 F, `r(F)') bdec(3) tdec(2) tex replace
> 
> It perfectly works.
> 
> However, I would like to have the R^2 and the results of the test in a
> column next to the variables, instead that at the bottom of the page.
> 
> How can I do this?
> 
> Thanks,
> Bea
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index