Learn R Programming

RChronoModel (version 0.1)

SuccessionPlot: Density Plots of two successive phases (for phases in temporal order constraint)

Description

Plot of the densities of two successive phases and several summary statistics statistics (mean, CI, HPDR)

Usage

SuccessionPlot(Phase1Beginning_chain, Phase1End_chain, Phase2Beginning_chain,
  Phase2End_chain, level = 0.95,
  title = "Phases marginal posterior densities", GridLength = 1024)

Arguments

Phase1Beginning_chain
numeric vector containing the output of the MCMC algorithm for the beginning of the oldest phase
Phase1End_chain
numeric vector containing the output of the MCMC algorithm for the end of the oldest phase
Phase2Beginning_chain
numeric vector containing the output of the MCMC algorithm for the beginning of the following phase
Phase2End_chain
numeric vector containing the output of the MCMC algorithm for the end of the following phase
level
probability corresponding to the level of confidence
title
title of the graph
GridLength
length of the grid used to estimate the density

Value

  • Plot of the densities of two successive phases

Examples

Run this code
data(Phases); attach(Phases)
  SuccessionPlot(Phase.1.alpha, Phase.1.beta, Phase.2.alpha, Phase.2.beta, 0.95)

Run the code above in your browser using DataLab