CreateMinMaxGroup: Constructing the minimum and the maximum for a group of...

Description Usage Arguments Value Author(s) Examples

View source: R/prog.R

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

1
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

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

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