Description Usage Arguments References See Also Examples
Generate nonparametric bootstrap samples. In addition to the the ordinary bootstrap, it supports weights, the Bayesian bootstrap, and sub- or super-sampling.
1 |
n |
A positive, scalar integer representing the number of observations (items to choose from). |
times |
A positive, scalar integer representing the number of bootstrap samples to draw. |
weights |
A numeric vector with observation level weights. |
bayes |
A scalar logical, indicating whether to use the Bayesian bootstrap. |
size |
The number of observations in each output sample. |
Angelo Canty and Brian Ripley (2016). "boot: Bootstrap R (S-Plus) Functions." R package version 1.3-18.
Davison, A. C. & Hinkley, D. V. (1997) Bootstrap Methods and Their Applications. Cambridge University Press, Cambridge. ISBN 0-521-57391-2
The boot function boot::boot()
which is the
canonical R bootstrap implementation. The modelr function
modelr::bootstrap()
, rsample function rsample::bootstraps
provide similar implementations specialized to data frames.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.