Learn R Programming

oxcAAR (version 1.1.1)

oxcalSumSim: Sum calibration for simulated dates

Description

Sum calibration for simulated dates

Usage

oxcalSumSim(
  timeframe_begin,
  timeframe_end,
  n,
  stds,
  date_distribution = c("equidist", "uniform")
)

Arguments

timeframe_begin, timeframe_end

beginning and end of the time frame for which dates should be simulated

n

the number of dates that should be simulated

stds

either one standard deviation for all dates or a vector of standard deviations with length n

date_distribution

a character string indicating which method should be used to distribute the dates in the given time frame, can be abbreviated

Value

A list containing the following components:

dates

the dates for the simulated sum calibration

probabilities

the probabilities for the simulated sum calibration

date_distribution

the distribution method used for the dates

Details

The dates can be distributed using one of the following methods: 'equidist' distributed the n dates within the time frame with equal distance, 'uniform' random samples n dates from the given time interval with uniform distribution