caldist: Calculate calibrated distribution

View source: R/calibrate.R

caldistR Documentation

Calculate calibrated distribution

Description

Calculate the calibrated distribution of a radiocarbon date.

Usage

caldist(
  age,
  error,
  cc = 1,
  postbomb = FALSE,
  yrsteps = FALSE,
  threshold = 0.001,
  calibt = FALSE,
  BCAD = FALSE,
  rule = 1,
  ccdir = NULL
)

Arguments

age

Uncalibrated radiocarbon age

error

Lab error of the radiocarbon age

cc

Calibration curve to use. Defaults to IntCal20 (cc=1).

postbomb

Whether or not to use a postbomb curve. Required for negative radiocarbon ages.

yrsteps

Steps to use for interpolation. Defaults to the cal BP steps in the calibration curve

threshold

Report only values above a threshold. Defaults to threshold=1e-6.

calibt

Use the student-t distribution as alternative to the normal distribution. Requires 2 parameters, e.g., calibt=c(3,4), defaults to FALSE.

BCAD

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

rule

Which extrapolation rule to use. Defaults to rule=1 which returns NAs.

ccdir

Directory of the calibration curves. Defaults to where the package's files are stored (system.file), but can be set to, e.g., ccdir="curves".

Examples

calib <- caldist(130,20)
plot(calib, type="l")
postbomb <- caldist(-3030, 20, "nh1", BCAD=TRUE)

IntCal documentation built on July 12, 2022, 1:05 a.m.