age.range: Calculate age ranges

View source: R/calibrate.R

age.rangeR Documentation

Calculate age ranges

Description

Calculate the quantile age ranges of a calibrated distribution

Usage

age.range(calib, prob = 0.95, roundby = 0, BCAD = FALSE)

Arguments

calib

The calibrated distribution, as returned from caldist(). Alternatively this can be multiple values (e.g., rnorm(1e3, 2450,50)), from which the quantiles/age ranges will be returned.

prob

Probability range which should be calculated. Default prob=0.95.

roundby

Rounding. Defaults to 0 decimals.

BCAD

Which calendar scale to use. Defaults to cal BP, BCAD=FALSE.

Value

The highest posterior density ranges, as three columns: from age, to age, and the corresponding percentage(s) of the range(s)

Examples

age.range(caldist(130,20, bombalert=FALSE))

rice documentation built on Aug. 19, 2026, 5:07 p.m.