interval_hdr | R Documentation |
Highest Density Regions
## S4 method for signature 'CalibratedAges,missing'
interval_hdr(x, level = 0.954, ...)
x |
A |
level |
A length-one |
... |
Currently not used. |
A CalibratedIntervals
object.
N. Frerebeau
Hyndman, R. J. (1996). Computing and graphing highest density regions. American Statistician, 50: 120-126. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2307/2684423")}.
stats::density()
, arkhe::interval_hdr()
Other statistics:
interval_credible()
,
mean()
,
median()
,
quantile()
## Calibrate multiple dates
cal <- c14_calibrate(
values = c(5000, 4500),
errors = c(45, 35),
names = c("X", "Y")
)
## HDR
hdr68 <- interval_hdr(cal, level = 0.683)
hdr95 <- interval_hdr(cal, level = 0.954)
hdr99 <- interval_hdr(cal, level = 0.997)
## Coerce to data.frame
as.data.frame(hdr95, calendar = BC())
## Plot
plot(cal, interval = "hdr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.