MultiPhasesTransition: Transition range for a succession of phases (for phases in...

Description Usage Arguments Details Value Author(s) Examples

View source: R/prog.R

Description

Finds if it exists the shortest interval [TransitionRangeInf, TransitionRangeSup] that satisfies : P(TransitionRangeInf < Phase1Max < Phase2Min < TransitionRangeSup | M) = level for each phase

Usage

1
2
MultiPhasesTransition(data, position_minimum, position_maximum = position_minimum+1, 
level = 0.95, max_decimal = 0)

Arguments

data

dataframe containing the output of the MCMC algorithm

position_minimum

numeric vector containing the column number corresponding to the minimum of the dates included in each phase

position_maximum

numeric vector containing the column number corresponding to the maximum of the dates included in each phase. By default, position_maximum = position_minimum + 1.

level

probability corresponding to the level of confidence

max_decimal

maximum number of decimal

Details

For each i, MultiPhasesTransition computes the transition interval for the phase defined by its minimum position_minimum[i] and its maximum position_maximum[i]. The default value of position_maximum corresponds to CSV files exported from ChronoModel software.

Value

Returns a matrix of values containing the level of confidence and the endpoints of the transition interval for each pair of successive phases

Author(s)

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

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  # Data extracted from ChronoModel software
  data(Phases)
  
  # List of the name of the phases 
  names(Phases)
  
  # Stipulating position_maximum
  MultiPhasesTransition(Phases, c(4,2), c(5,3))
  
  # In this case, equivalent to 
  MultiPhasesTransition(Phases, c(4,2))

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