Dear R user,

I got a question when using the coxph function. I have 5 covariates x1, x2,
x3, x4, x5 and I want to write a function so that when given an indicator,
e.g., c(1,3,5), I can fit the model as
model=coxph(Surv(time, status)~x1+x3+x5). Any idea to play around the form
of formula?

Thank you very much!

Xing Yuan
University of Pittsburgh

	[[alternative HTML version deleted]]

