MultiCredibleInterval {ArchaeoPhases}R Documentation

Bayesian credible interval for a series of dates

Description

Estimation of the shortest credible interval for each variable of a simulated Markov chain

Usage

MultiCredibleInterval(data, position, level = 0.95, roundingOfValue = 0)

Arguments

data

data frame containing the output of the MCMC algorithm.

position

Numeric vector containing the position of the column corresponding to the MCMC chains of interest.

level

Probability corresponding to the level of confidence used for the credible interval.

roundingOfValue

Integer indicating the number of decimal places.

Details

A (100 * level)\ The (100*level)\

Value

Returns a matrix of values containing the level of confidence and the endpoints of the shortest credible interval for each variable of the MCMC chain. The name of the resulting rows are the positions of the corresponding columns in the CSV file. The result is given in calendar years (BC/AD).

Author(s)

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

Marie-Anne Vibet, Marie-Anne.Vibet@univ-nantes.fr

Examples

  data(Events)
  MultiCredibleInterval(Events, c(2, 4, 3), 0.95)


[Package ArchaeoPhases version 1.5 Index]