Learn R Programming

rice (version 0.3.0)

older: Find the probability of a calibrated date being older than a certain age

Description

Find the probability of a calibrated date being older than an age x.

Find the probability that a sample is older than a certain calendar age x, by calculating the proportion of the calibrated distribution 'after' x (i.e., 1 - the summed calibrated distribution up to year x).

Usage

older(
  x,
  y,
  er,
  cc = 1,
  postbomb = FALSE,
  normal = TRUE,
  as.F = FALSE,
  t.a = 3,
  t.b = 4,
  BCAD = FALSE,
  threshold = 0
)

Value

The probability of a date being older than a certain calendar age.

Arguments

x

The year of interest, in cal BP by default.

y

The radiocarbon date's mean.

er

The radiocarbon date's lab error.

cc

calibration curve for the radiocarbon date(s) (see the rintcal package).

postbomb

Whether or not to use a postbomb curve (see caldist()).

normal

Use the normal distribution to calibrate dates (default TRUE). The alternative is to use the t model (Christen and Perez 2016).

as.F

Whether or not to calculate ages in the F14C realm. Defaults to as.F=FALSE, which uses the C14 realm.

t.a

Value a of the t distribution (defaults to 3).

t.b

Value b of the t distribution (defaults to 4).

BCAD

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

threshold

Report only values above a threshold. Defaults to threshold=0.

Author

Maarten Blaauw

Details

The function can only deal with one date at a time.

Examples

Run this code
older(2800, 2450, 20)
older(2400, 2450, 20)
calibrate(160, 20, BCAD=TRUE)
older(1750, 160, 20, BCAD=TRUE)

Run the code above in your browser using DataLab