Statalist


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

st: AW: getting p-values from estat phtest into esttab


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: getting p-values from estat phtest into esttab
Date   Fri, 27 Mar 2009 14:57:04 +0100

<> 

Note you can get the p-value as

*************
webuse leukemia, clear
stset weeks, failure(relapse)
stcox treatment2 wbc2 wbc3, schoenfeld(sch*) scaledsch(sca*)
estat phtest, rank detail
*get p-value
di chi2tail(r(df), r(chi2)) 
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von moleps islon
Gesendet: Freitag, 27. März 2009 14:51
An: statalist@hsphsun2.harvard.edu
Betreff: st: getting p-values from estat phtest into esttab

I need to save multiple p-values from the estat phtest postestimated
cox analysis, preferably in a way that esttab would let me display
them afterwards. However the only values returned are r(chi2) and
r(df). This problem was addressed in the statalist back in 2007 as
well by Jebsen. The answer though seems elusive.
regards
Moleps
*
*   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