[R] coxph question

Mayeul KAUFFMANN mayeul.kauffmann at tiscali.fr
Fri Aug 13 03:16:48 CEST 2004

> 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
each variable?
> Chris

I guess you need covariate selection.
for a lengthy discussion of another method (AIC/BIC), look at last month

and try using
> library(MASS)
> stepAIC (...)

Most of the time, it starts removing the covariate with the lower p-value.

Univ. Pierre Mendes France
Grenoble - France

More information about the R-help mailing list