
Quantiles of a Density Estimate
# S4 method for CalibratedAges
quantile(
x,
probs = seq(0, 1, 0.25),
na.rm = FALSE,
...,
calendar = get_calendar()
)# S4 method for ProxyRecord
quantile(x, probs = seq(0, 1, 0.25), na.rm = FALSE, ...)
A numeric
matrix
containing the quantiles.
A CalibratedAges
object.
A numeric
vector of probabilities with values in
A logical
scalar: should NA
values be stripped before the
computation proceeds?
Currently not used.
An aion::TimeScale
object specifying the target
calendar (see aion::calendar()
). If NULL
, rata die are returned.
N. Frerebeau
## Calibrate multiple dates
cal <- c14_calibrate(
values = c(5000, 4500),
errors = c(45, 35),
names = c("X", "Y")
)
## Statistics
quantile(cal)
median(cal)
mean(cal)
## Plot
plot(cal, calendar = CE())
## Need to set 'calendar'
abline(v = median(cal, calendar = CE()), lty = 2, col = "blue")
abline(v = mean(cal, calendar = CE()), lty = 2, col = "red")
Run the code above in your browser using DataLab