View source: R/PhaseStatistics.R

PhaseStatistics | R Documentation |

Estimation of summary statistics, including the beginning and end of a phase, and the duration of the phase

PhaseStatistics( PhaseMin_chain, PhaseMax_chain, level = 0.95, roundingOfValue = 0 )

`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 highest density region. |

`roundingOfValue` |
Integer indicating the number of decimal places. |

The summary statistics are those given by the `MarginalStatistics()`

function.
The time range is given by `PhaseTimeRange()`

function. The duration is computed
as follows: *duration = maximum - minimum* at each iteration of the MCMC output.

A matrix of values corresponding to the summary statistics:

- 1
Statistics of the minimum of the dates included in the phase

- 2
Statistics of the maximum of the dates included in the phase

- 3
Statistics of the duration of the dates included in the phase

The results are given in calendar year (in format BC/AD).

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

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

data(Phases); attach(Phases) PhaseStatistics(Phase.1.alpha, Phase.1.beta, 0.95) PhaseStatistics(Phase.2.alpha, Phase.2.beta, 0.95)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.