bhist {mining}R Documentation

Histogram with confidence intervals

Description

Same as hist except a confidence interval is drawn around each bin height.

Usage

bhist(x,b=NULL,z=1)

Arguments

x a numerical vector
b the number of bins, or a vector of break locations. If NULL, chosen automatically by hist.

Details

The width of the interval for height p is sqrt(p*(1-p)/n)*exp(-1/6/p/n).

Value

None.

Author(s)

Tom Minka

Examples

x <- c(rnorm(100,-2,0.5),rnorm(100,2,0.5))
b <- seq(-4,4,by=0.25)
bhist(x,b)

[Package Contents]