[R] bootstrap sample with R

Ethan Johnsons ethan.johnsons at gmail.com
Sun Dec 10 08:27:09 CET 2006


How do you draw a bootstrap sample of size 9, with replacement, from
the random dataset I drew?   Is there a function for it in R?

9 random samples.

>rnorm(9, 0, 1)

[1]  1.2071538  0.3183367 -1.4237989 -0.4050909  0.9953866  0.9588178  0.9180879
[8] -0.1509696 -1.2230688


thx

ej




More information about the R-help mailing list