Statalist


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

st: AW: How to esttab some statistics below the respective coefficients when there are two estimates stores?


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: How to esttab some statistics below the respective coefficients when there are two estimates stores?
Date   Fri, 2 Oct 2009 09:23:49 +0200

<>

You have to trick -esttab- into thinking that it is looking at the same
result for both models - which is possible, as seen below. But it does tend
to mess up your results as they now contain a "wrong" result, so you have to
be very, very careful and make sure you use this method only for this
purpose...



*************
sysuse auto, clear

reg price weight length turn
eststo est1, title(OLS)

logit foreign length turn trunk
eststo est2, title(logit) /* 
*/ add(F `e(chi2)' r2_a `e(r2_p)')

esttab est1 est2, mtitle /* 
*/ sca("F F/chi2" "r2_a r2_a/r2_p")
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von gjhxmu@sina.com
Gesendet: Freitag, 2. Oktober 2009 08:33
An: statalist
Betreff: st: How to esttab some statistics below the respective coefficients
when there are two estimates stores?

Dear statalists,
I want to esttab two eststos. The equation statistics of one eststo are
F,r2_a, while those of the other eststo are chi2, r2_p. How can I esttab
these statistics below the respective coefficients?

For example

qui reg y x

eststo est1

qui logit dum z

eststo est2


// I hope the results to be displayed as follows,

             (1)    (2)
             y     dum

x             ...     ...

z            ...        ...

_cons       ...    ...

----------------------------
F/chi2      ...         ...   
r2_a/r2_p  ...        ...   
----------------------------


I think the typing should be  something like "esttab est1 est2, stats(?
?,labels(F/chi2,r2_a/r2_p))  ", but I do not know how to feed to the "?".


Thank you for any help.

Best regads,

Rose.
 

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