[R] coxph question
Man, Chris T.
CTMAN at txccc.org
Fri Aug 13 16:35:33 CEST 2004
I actually would like to test each variable individually and use those have low p-value to build a classifier (not in cox model). Therefore, I need to write a function to subset those low p-value variables, instead of putting them as covariates. Any ideas?
From: Mayeul KAUFFMANN [mailto:mayeul.kauffmann at tiscali.fr]
Sent: Thursday, August 12, 2004 8:17 PM
To: r-help at stat.math.ethz.ch
Subject: [R] coxph question
> I have many variables to test using cox model (coxph), and I am only
interested in those variables with p value less than 0.01. Is there a
quick way to do this automatically instead of looking at the output of
I guess you need covariate selection.
for a lengthy discussion of another method (AIC/BIC), look at last month
and try using
> stepAIC (...)
Most of the time, it starts removing the covariate with the lower p-value.
Univ. Pierre Mendes France
Grenoble - France
R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help