hist.simpleboot: Histograms for bootstrap sampling distributions.

Description Usage Arguments Details Value Author(s) Examples

Description

Construct a histogram of the bootstrap distribution of univariate statistic.

Usage

1
2
## S3 method for class 'simpleboot'
hist(x, do.rug = FALSE, xlab = "Bootstrap samples", main = "", ...)

Arguments

x

An object of class "simpleboot" returned from either one.boot, two.boot, or pairs.boot.

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.

Details

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.

Value

Nothing is returned.

Author(s)

Roger D. Peng

Examples

1
2
3
4
5
x <- rnorm(100)

## Bootstrap the 75th percentile
b <- one.boot(x, quantile, R = 1000, probs = 0.75)
hist(b)

Example output

Loading required package: boot
Simple Bootstrap Routines (1.1-3 2008-04-30)

simpleboot documentation built on May 2, 2019, 4:16 a.m.