Skip to content

How to extract z value from coxph

3 messages · Man, Chris T., Thomas Lumley, Peter Dalgaard

#
Hi all,

I have tried to use coxph to determine which variables are significant in survival analysis. I also would like to use their z scores as weights to build a linear classification model. Although the function outputs the z value, but I can't access to it, so that I can write code to extract them automatically and pass them to the next function. Can someone help?

Thanks,

Chris
#
On Wed, 4 Aug 2004, Man, Chris T. wrote:

            
Use the accessor functions:

z <- coef(model)/sqrt(diag(vcov(model)))

as for most regression models.

	-thomas
#
Thomas Lumley <tlumley at u.washington.edu> writes:
However (and sorry if I sound like a broken record) it would be nice
if summary.coxph, instead of just using cat(), returned an object ...
as most other regression models do.