agePredict: This function is used to predict the age of new stratigraphic...

View source: R/agePredict.R

agePredictR Documentation

This function is used to predict the age of new stratigraphic points using the output from an ageModel run.

Description

This function is used to predict the age of new stratigraphic points using the output from an ageModel run.

Usage

agePredict(
  model,
  newPositions,
  ids = 1:length(newPositions),
  newPositionThicknesses = rep(0, length(newPositions)),
  probability = 0.95
)

Arguments

model

Output of the ageModel function

newPositions

Vector of new stratigraphic positions to predict the age of. New positions must be within the bounds of the orignal model run

ids

optional vector of names for new positions. Defaults to 1, 2, 3, ...

newPositionThicknesses

Vector of stratigraphic uncertanties for each position. Specified as half thicknesses. Must be the same length and given in the same order as newPositions. Default is no positional uncertanty

Value

HDI = 95 percent Highest Density Interval for each newPosition

raw = Age predictions for each newPosition for each MCMC run.


robintrayler/modifiedBChron documentation built on April 16, 2023, 6:28 p.m.