Learn R Programming

rice (version 2.3.0)

age.range: Calculate age ranges

Description

Calculate the quantile age ranges of a calibrated distribution

Usage

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

Value

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

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.

Examples

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

Run the code above in your browser using DataLab