MultiDatesPlot: Plot of the endpoints of credible intervals or HPD intervals...

Description Usage Arguments Author(s) Examples

View source: R/prog.R

Description

Draws a plot of segments corresponding to the endpoints of the intervals (CI or HPD) of each selected date.

Usage

1
2
MultiDatesPlot(data, position, level = 0.95,  intervals = c("CI", "HPD"), 
title = "Plot of intervals")

Arguments

data

dataframe 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 to estimate the credible interval

intervals

"CI" corresponds to the credible intervals, "HPD" to the highest density regions

title

title of the graph

Author(s)

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

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

Examples

1
2
3
  data(Events)
  MultiDatesPlot(Events, c(2,4,3), level = 0.95, intervals ="CI", title = "Plot of CI intervals")
  MultiDatesPlot(Events, c(2,4,3), level = 0.95, intervals ="HPD", title = "Plot of HPD intervals")

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