Re: [R] boot() versus loop, and statistics option

2011-02-06 Thread Prof Brian Ripley
Package boot is support software for a book: have you consulted it? It answers all your questions, and has copious examples. On Sun, 6 Feb 2011, Sascha Vieweg wrote: Hello R users I am quite new to bootstrapping. Now, having some data x, R: set.seed(1234) R: x <- runif(300) I want to

[R] boot() versus loop, and statistics option

2011-02-06 Thread Sascha Vieweg
Hello R users I am quite new to bootstrapping. Now, having some data x, R: set.seed(1234) R: x <- runif(300) I want to bootstrap simple statistics, mean and quantiles (.025, .975). Currently, I run a loop R: res <- as.data.frame(matrix(ncol = 3, dimnames = list(NULL, ...c("M"