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