[R] censored bootstrap

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sun Apr 23 11:56:13 CEST 2000


On Sat, 22 Apr 2000, Vittorio Addona wrote:

> Hello,
> I have been trying to use the censored bootstrap function 'censboot'
> from the library boot, with the function 'survfit' from the library
> survival5.  My code is:
> 
> surv.fun <-function(data) {
>   sur<-survfit(Surv(data[,1],data[,2]), data=data)
>   }
> c.boot<-censboot(m,surv.fun,R=99)
> 
> m is my data set
> 
> I get the error message:
> Error in eval(attr(formula,"variables"),data,sys.frame(sys.parent( ))):
>     sys.frame: not that many enclosing functions
> 
> Does anyone know what this means, or what I'm doing wrong?  Thank you
> very much.

It is probably a problem with the R port. If you can send me a reproducible
example, I can take a look, but not otherwise.  All the supplied examples
work.


-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list