[R] cannot use simple=TRUE in boot
he chen
chenhe.liz at gmail.com
Mon Jun 25 09:26:16 CEST 2012
I am doing boot with a large database, thus want to use simple=TRUE to
reduce the memory used.
I alreday set up sim="ordinary", stype="i" , but I don't know how to
set "n=0". In fact, I don't know what does "n=0" mean?
For example,
a<-c(1:1000)
b<-c(2:1001)
c<-cbind(a,b)
library(boot)
table<-function(c,indices){
d<-c[indices,]
e<-mean(d[,1])
return(e)
}
boot<-boot(c,table,100, sim="ordinary", stype="i",simple=TRUE)
AND, r give "Error in statistic(data, original, ...) : unused
argument(s) (simlpe = TRUE)"
Thanks a lot!
More information about the R-help
mailing list