"bcanon"<- function(x,nboot,theta,...,alpha = c(.025,.05,.1,.16,.84,.9,.95,.975)){ call <- match.call() n <- length(x) thetahat <- theta(x,...) bootsam <- matrix(sample(x,size=n*nboot,replace=T),nrow=nboot) thetastar <- apply(bootsam,1,theta,...) z0 <- qnorm(sum(thetastar