undated_sample: Predictive distribution of date

View source: R/undated_sample.R

undated_sampleR Documentation

Predictive distribution of date

Description

Predictive distribution of date

Usage

undated_sample(data1, data2, level = 0.95)

Arguments

data1

Numeric vector containing the output of the MCMC algorithm for the begining of interval

data2

Numeric vector containing the output of the MCMC algorithm for the end of interval

level

Probability corresponding to the desired level of confidence. @return A list with the following components:

Details

Simulate the sample from the predictive distribution of an undated sample in stratigraphic constraint between two dates. The input is an MCMC sample simulated from the joint posterior distribution of these dates.

Author(s)

Anne Philippe, Anne.Philippe@univ-nantes.fr and

TR

time range to characterize the period defied by data1 and data2

ci

credible interval for the preditive date

mcmc

simulated sample from undated sample age

call

Function call.

Examples

  data(Phases);
  attach(Phases)
  sample = undated_sample(Phase.1.alpha,Phase.1.beta)
  # credible interval for the new date.
  sample$credible
  #time range interval
  sample$timerange
 # graphics = densities / IC / time range ggplot
   sample$gr

ArchaeoPhases documentation built on June 22, 2022, 1:05 a.m.