I would estimate the coverage of the bootstrap interval for the mean knowing that the true average is 895.0385. I have my vector b<-c(300,300,200,250,600...) and I make bootstrap and output interval:
mean.fun <- function(dat, idx) mean(dat[idx], na.rm = TRUE) boot.out <- boot(b, mean.fun, R=999) boot.ci(boot.out) But how I can replicate this in order to obtain the coverage probability (how many times it contained the true average)?
?replicatefunction.