Re: [R] range of group variables

2012-03-03 Thread Thomas Lumley
On Fri, Mar 2, 2012 at 11:29 AM, sajjad R sajja...@hotmail.com wrote: Dear All, I hope to run some simple survival analysis using the cox-proportional hazard models in R, my command will look like below: cox - summary( coxph( Surv( mortality , TIME ) ~ Independent variables ) ) My query

[R] range of group variables

2012-03-01 Thread sajjad R
Dear All, I hope to run some simple survival analysis using the cox-proportional hazard models in R, my command will look like below: cox - summary( coxph( Surv( mortality , TIME ) ~ Independent variables ) ) My query is about specifying a range of independnt variables in R, such that each

Re: [R] range of group variables

2012-03-01 Thread Joshua Wiley
You could loop through the list using lapply() or the like. One way would be to subset the data and use . Notation which expands to all variables in the dataset not used elsewhere in the model (ie not the outcomes). Cheers, Josh On Mar 1, 2012, at 14:29, sajjad R sajja...@hotmail.com