powered by
Highest Density Regions
interval_hdr(x, y, ...)# S4 method for numeric,numeric interval_hdr(x, y, level = 0.954)# S4 method for numeric,missing interval_hdr(x, level = 0.954, ...)
# S4 method for numeric,numeric interval_hdr(x, y, level = 0.954)
# S4 method for numeric,missing interval_hdr(x, level = 0.954, ...)
A three-columns numeric
numeric
matrix giving the lower and upper boundaries of the HPD interval and associated probabilities.
matrix
A numeric vector giving the coordinates of the points where the density is estimated.
A numeric vector giving the estimated density values. If y is missing and x is a numeric vector, density estimates will be computed from x.
y
x
Further arguments to be passed to stats::density().
stats::density()
A length-one numeric vector giving the confidence level.
N. Frerebeau
Hyndman, R. J. (1996). Computing and graphing highest density regions. American Statistician, 50: 120-126. tools:::Rd_expr_doi("10.2307/2684423").
Other summary statistics: confidence_binomial(), confidence_mean(), confidence_multinomial(), interval_credible()
confidence_binomial()
confidence_mean()
confidence_multinomial()
interval_credible()
## HDR of the Old Faithful eruption times interval_hdr(faithful$eruptions)
Run the code above in your browser using DataLab