PhaseStatistics {RChronoModel}R Documentation

Summary statistics for a phase

Description

Estimation of several summary statistics of the minimum, the maximum and the duration of the dates included in the phase.

Usage

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

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

max_decimal

maximum number of decimal

Details

The summary statistics are those given by MarginalStatistics function. The time range is given by PhaseTimeRange function. The duration is computed as follow duration = maximum - minimum at each iteration of the MCMC output.

Value

Returns a list 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

4

The endpoints of the phase time range

Author(s)

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

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

Examples

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

[Package RChronoModel version 0.4 Index]