PhaseDurationPlot: Plot of the marginal posterior densities of the duration of a...

Description Usage Arguments Value Author(s) Examples

View source: R/prog.R

Description

This function draws the marginal posterior densities of the time elapsed between the minimum and the maximum of the dates included in a phase, and adds summary statistics (mean, CI)

Usage

1
2
PhaseDurationPlot(PhaseMin_chain, PhaseMax_chain, level=0.95, 
title = "Duration of the phase", colors = T, GridLength=1024)

Arguments

PhaseMin_chain

numeric vector containing the output of the MCMC algorithm for the minimum of the dates included in the phase

PhaseMax_chain

numeric vector containing the output of the MCMC algorithm for the maximum of the dates included in the phase

level

probability corresponding to the level of confidence used for the credible interval and the time range

title

title of the graph

colors

if TRUE -> use of colors in the graph

GridLength

length of the grid used to estimate the density

Value

A plot with the marginal posterior densities of the duration of a phase and adds several summary statistics (mean, Credible interval, Time range)

Author(s)

Anne Philippe <Anne.Philippe@univ-nantes.fr> and

Marie-Anne Vibet <Marie-Anne.Vibet@univ-nantes.fr>

Examples

1
2
3
4
  data(Phases); attach(Phases)

  PhaseDurationPlot(Phase.1.alpha, Phase.1.beta, 0.95, "Duration of Phase 1")
  PhaseDurationPlot(Phase.2.alpha, Phase.2.beta, 0.95, "Duration of Phase 2",colors = FALSE)

RChronoModel documentation built on May 1, 2019, 10:06 p.m.