Description Usage Arguments Value Author(s) Examples
Draw one bootstrap sample of a given vector of sample values
1 | bootSample(x, seed0)
|
x |
a numeric vector, sample data. |
seed0 |
a random seed for bootstrap sampling. |
Returns a numeric vector which is a bootstrap sample drawn randomly with replacement from and with the same vector length as the sample data x .
Jingqin Luo
1 2 3 4 5 | ##generate random data
x <- rnorm(100)
##draw a bootstrap sample
boot.x <- bootSample(100,seed0=12345)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.