checkTH: Determine if Time Homogeneity is present in the give...

Description Usage Arguments Value References Examples

View source: R/getTH.R

Description

Takes a sequence as input and finds if Time Homogeneity is present or not.

Usage

1

Arguments

seq

- A sequence whose Time Homogeneity is to be determined

Value

Returns nothing but prints output representing presence or absence of Time Homogeneity

References

[1] Markov Chain Test for Time Dependence and Homogeneity: An Analytical and Empirical Evaluation Baris Tan and Kamil Yilmaz European Journal of Operational Research 137 (2002) 524-543

Examples

1
2
3
4
5
6
7
## Check for a homogenous sequence
seq <- c(1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2)
checkTH(seq)

## Check for a heterogenous sequence
seq <- c(1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1)
checkTH(seq)

Example output

[1] "Time homogeneity present in given sequence"
[1] "Time homogeneity absent in given sequence"

MOrder documentation built on May 2, 2019, 2:43 p.m.

Related to checkTH in MOrder...