On Fri, Mar 2, 2012 at 11:29 AM, sajjad R 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 is about sp
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 wrote:
>
> Dear All,
>
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 in
3 matches
Mail list logo