# Re: Stcox ereturn list: wrong chi2 p-value?s

 From "Martin Weiss" To Subject Re: Stcox ereturn list: wrong chi2 p-value?s Date Sun, 21 Sep 2008 11:59:51 +0200

webuse stan3
stset
stcox age posttran surg yea
eret li
di 1-chi2(e(df_m),e(chi2))

HTH
Martin
_______________________
----- Original Message ----- From: "junin" <dv.junin@gmail.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Sunday, September 21, 2008 11:52 AM
Subject: Stcox ereturn list: wrong chi2 p-value?s

Hello,

I have a question concerning the output of a Cox regression, which I
want to access with outreg2. Below you find the results of the Cox
regression command as well as the ereturn list results. My question
is: Why doesn't the e(r2_p) = .0006402283288656 repor the Prob >
chi2 = 0.0025?
How can I access the Prob > chi2?

Thank you for you help,

dirk

Cox regression -- Breslow method for ties

No. of subjects = 1970 Number of obs = 15654
No. of failures = 1065
Time at risk = 15654
LR chi2(1) = 9.17
Log likelihood = -7153.7882 Prob > chi2 = 0.0025

------------------------------------------------------------------------------
_t | Haz. Ratio Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
Xsales | .99992 .0000413 -1.94 0.053 .9998391 1.000001
------------------------------------------------------------------------------

. ereturn list

scalars:
e(N) = 15654
e(ll_0) = -7158.37122089778
e(ll) = -7153.788228853626
e(df_m) = 1
e(chi2) = 9.165984088309415
e(r2_p) = .0006402283288656
e(N_sub) = 1970
e(N_fail) = 1065
e(risk) = 15654
*
* 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/
```