Description Usage Arguments Value Examples
Given data x, generates a bootstrap distribution with B bootstrap samples, computing a statistic speficied by FUN each time.
1 | boot.dist.1d(x, B, FUN = mean, ...)
|
x |
A numeric vector of data. |
B |
The number of bootstrap samples to draw. |
FUN |
A function that computes the statistic of interest. FUN must have a vector of data as its first argument and must return a numeric vector of length 1 (i.e. a scalar). |
... |
Additional arguments passed to FUN. |
A numeric vector containing the bootstrap distribution of the statistic specified by FUN.
1 | boot.dist.1d(rnorm(50, 0, 1), 1000, median)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.