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? ;-)

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to