[R] Trying to run simple survival program in R but does not work

Tomas Lanczos lanczos at fns.uniba.sk
Thu Aug 7 12:34:55 CEST 2008


Trev101 wrote:
> Hey,
>
> I am just starting to learn R now and I typed in this simple survival
> program:
>   
>    library(survival)
>    t <- c(10,13,18,19,23,30,36,38,54,56,59,75,93,97,104,107,107,107)
>    c <- c(1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0)
>    data <- Surv(t,c)
>    km <- survfit(data)       
>    summary(km)
>    Call: survfit(formula = data)
>
> but everytime I run it I get this error:
>   
>   Error in eval.with.vis(expr, envir, enclos) : object "Call" not found
>
> Can someone please help me out I really have no idea wat I have done wrong.
> I have installed the survival library is there maybe some other library I
> need to install
>   
Don't capitalise the "Call" command, use "call" instead.
Good luck!

tomas

p.s.: am I right if I suppose that You are using Windows? ;-)



More information about the R-help mailing list