Learn R Programming

RChronoModel (version 0.1)

PhaseTimeRange: Phase Time Range

Description

Computes the shortest interval [IntervalInf ; IntervalSup ] that satisfies : P(Phase1End < IntervalInf < IntervalSup < Phase2Beginning | M) = level

Usage

PhaseTimeRange(PhaseBeginning_chain, PhaseEnd_chain, level = 0.95,
  max_decimal = 2)

Arguments

PhaseBeginning_chain
numeric vector containing the output of the MCMC algorithm for the beginning of the phase
PhaseEnd_chain
numeric vector containing the output of the MCMC algorithm for the end of the phase
level
probability corresponding to the desired level of confidence
max_decimal
maximum number of decimal

Value

  • A vector of values containing the desired level of confidence and the endpoints of the shortest time range associated with this desired level

Examples

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

Run the code above in your browser using DataLab