CreateMinMaxGroup {RChronoModel}R Documentation

Constructing the minimum and the maximum for a group of dates(phase)

Description

Constructs a dataframe containing the output of the MCMC algorithm corresponding to the minimum and the maximum of a group of dates (phase)

Usage

CreateMinMaxGroup(data, position, name ="Phase", add=NULL, exportFile=NULL)

Arguments

data

dataframe containing the output of the MCMC algorithm

position

numeric vector containing the position of the column corresponding to the MCMC chains of all dates included in the phase of interest

name

name of the current group of dates or phase

add

the name of the dataframe in which the current minimum and maximum should be added. Null by default.

exportFile

the name of the final file that will be saved if chosen. Null by default.

Value

A dataframe containing the minimum and the maximum of the group of dates included in the phase of interest. These values may be added to an already existing file "add" if given.

Author(s)

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

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

Examples

    data(Events)
    Temp = CreateMinMaxGroup(Events, c(2,4), "Phase2")
    Temp = CreateMinMaxGroup(Events, c(3,5), "Phase1", Temp)

[Package RChronoModel version 0.4 Index]