Hello,
Read the help page ?boot::boot.
For instance, try the following.
library(boot)
x <- rnorm(100)
stat <- function(x, f) mean(x[f])
boot(x, stat, R = 100)
Hope this helps,
Rui Barradas
Citando bryan.mac24 <bryan.ma...@gmail.com>:
Hi all,
I am wondering how to conduct bootstrapping in R. I need bootstrap
100 times. The trick I need to figure out is how to do get a random
sample of 100 out of the total number of case.
Best,
BM
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.