Skip to contents

14C Calibration with OxCal

Usage

oxcal_calibrate(names, dates, errors, curve = "IntCal20")

Arguments

names

A character vector specifying the names of the dates (e.g. laboratory codes).

dates

A numeric vector giving the BP dates to be calibrated.

errors

A numeric vector giving the standard deviation of the dates to be calibrated.

curve

A character string specifying the calibration curve to be used.

Value

A list with the following elements:

ocd

A list holding the ranges, probability distributions, etc. for each parameter.

model

A list containing information about the model.

calib

A list containing information about the calibration curve.

See also

Other OxCal tools: oxcal_download(), oxcal_execute(), oxcal_parse(), oxcal_setup()

Author

N. Frerebeau

Examples

if (FALSE) {
## Download OxCal
oxcal_setup()

## Calibrate 14C dates
cal <- oxcal_calibrate(
  names = c("X","Y"),
  dates = c(5000, 4500),
  errors = c(45, 35)
)
plot(cal, curve = FALSE)
plot(cal, curve = TRUE)

## Custom script
scr <- 'Plot()
 {
  Sequence("Sequence1")
  {
   Boundary("Begin");
   Phase("Phase1")
   {
    R_Date("Lab-1",5000,25);
    R_Date("Lab-2",4900,37);
   };
   Boundary("Between");
   Phase("Phase2")
   {
    R_Date("Lab-3",4800,43);
   };
   Boundary("End");
  };
 };'
out <- oxcal_execute(scr)
res <- oxcal_parse(out)

plot(res, curve = FALSE)
plot(res, curve = TRUE)

as.data.frame(res)
}