Learn R Programming

RChronoModel (version 0.1)

PhasesTransition: Transition range between two successive phases (for phases in temporal order constraint)

Description

Finds if it exists the shortest interval [TransitionRangeInf , TransitionRangeSup ] that satisfies : P(TransitionRangeInf < Phase1End < Phase2Beginning < TransitionRangeSup | M) = level

Usage

PhasesTransition(Phase1End_chain, Phase2Beginning_chain, level = 0.95,
  max_decimal = 0)

Arguments

Phase1End_chain
numeric vector containing the output of the MCMC algorithm for the end of the oldest phase
Phase2Beginning_chain
numeric vector containing the output of the MCMC algorithm for the beginning of the following phase
level
probability corresponding to the level of confidence
max_decimal
maximum number of decimal

Value

  • Returns a vector of values containing the level of confidence and the endpoints of the transition interval between the successive phases

Examples

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

Run the code above in your browser using DataLab