[R] Trying to run simple survival program in R but does not work
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Aug 7 11:50:44 CEST 2008
On Thu, 7 Aug 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.
You have pasted in part of the output of 'summary(km)': R does not
understand its own output, only its language.
> 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.
>
> ______________________________________________
> R-help at 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.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list