Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Date: Wed, 10 Oct 2007 10:41:19 +0200


From   "Peter Jepsen" <[email protected]>
To   <[email protected]>
Subject   st: Date: Wed, 10 Oct 2007 10:41:19 +0200
Date   Wed, 10 Oct 2007 04:42:32 -0400 (EDT)

Dear Statalisters,

I would like to obtain the p-value (or chi2) for the test of
proportional hazard assumption for the variable 'exposed'. -return list-
gives me the chi2 for the global test, but not for the individual
variables in the model. An example:

sysuse cancer, clear
stset studytime, fail(died)
gen exposed=drug==1
stcox exposed age, sca(sca*) sch(sch*)
estat phtest, detail

I can obtain the rho for 'exposed' with -corr sca1 _t-, but I don't know
how to get the chi2. I have tried reading the source code with -
viewsource stphtest.ado- but I couldn't make it out. Can anybody help
me?

Best regards,
Peter.


<<winmail.dat>>




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index