undated_sample {ArchaeoPhases} | R Documentation |
Predictive distribution of date
undated_sample(data1, data2, level = 0.95)
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: |
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.
Anne Philippe, Anne.Philippe@univ-nantes.fr and
time range to characterize the period defied by data1 and data2
credible interval for the preditive date
simulated sample from undated sample age
Function call.
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