[R] boot.ci

Fredrik Lundgren fredrik.bg.lundgren at bredband.net
Sun Jul 8 22:56:52 CEST 2007

Dear boot.ers,

I ran a small program for training purposes and ended with problems in 

bush <- c(rep(1, 840), rep(0, 660))
> f.mean <- function(y, id) {mean(y[id])}
> bushB <- boot(bush, f.mean, 1000)
> boot.ci(bushB, conf = 0.95, type = c('perc', 'bca'))
Error in bca.ci(boot.out, conf, index[1], L = L, t = t.o, t0 = t0.o, h = 
h,  :
 estimated adjustment 'a' is NA

What's wrong in my setup? boot appears to work OK

Sincerly Fredrik Lundgren

PS. By the way - anyone who has "Resampling stats, standalone" for sale? 

More information about the R-help mailing list