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
How to extract z value from coxph
3 messages · Man, Chris T., Thomas Lumley, Peter Dalgaard
On Wed, 4 Aug 2004, Man, Chris T. wrote:
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?
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:
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?
Use the accessor functions: z <- coef(model)/sqrt(diag(vcov(model))) as for most regression models.
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.
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907