[R] censored bootstrap
Vittorio Addona
vaddon at po-box.mcgill.ca
Sat Apr 22 16:46:20 CEST 2000
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.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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