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

Trev101 vegetahan at hotmail.com
Thu Aug 7 09:56:31 CEST 2008


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?
-- 
View this message in context: http://www.nabble.com/Trying-to-run-simple-survival-program-in-R-but-does-not-work-tp18865807p18865807.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list