Re: [R] Bootstrap library(boot) "boot.ci" function

2015-01-17 Thread David Winsemius
Moderator’s note; There were two messages from this person in the moderation queue and since they appeared identical in the moderation panel, I accepted accepted one and rejected the other. I’m now wondering (and have no way of checking) whether the OP sent a second non-HTML version and I reject

[R] Bootstrap library(boot) "boot.ci" function

2015-01-17 Thread varin sacha
Hi dear R-experts, I want to compare the bootstrap percentile interval, the Z interval, the T interval, etc.So I use a function (I have modified a few things) I have found on stats.stackexchange. simfun <- function(n=20) {x <- rnorm(n)m.x <- mean(x)s.x <- sd(x)z <- m.x/(1/sqrt(n))t <- m.x/(s.x/s