hist.simpleboot | R Documentation |
Construct a histogram of the bootstrap distribution of univariate statistic.
## S3 method for class 'simpleboot'
hist(x, do.rug = FALSE, xlab = "Bootstrap samples", main = "", ...)
x |
An object of class |
do.rug |
Should a rug of the bootstrap distribution be plotted under the histogram? |
xlab |
The label for the x-axis. |
main |
The title for the histogram. |
... |
Other arguments passed to |
hist
constructs a histogram for the bootstrap distribution of a
univariate statistic. It cannot be used with linear model or loess
bootstraps. In the histogram a red dotted line is plotted denoting
the observed value of the statistic.
Nothing is returned.
Roger D. Peng
x <- rnorm(100)
## Bootstrap the 75th percentile
b <- one.boot(x, quantile, R = 1000, probs = 0.75)
hist(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.