These functions verify the Markov property, assess the order and stationarity of the Markov chain.

1 2 3 4 5 6 7 | ```
verifyMarkovProperty(sequence, ...)
assessOrder(sequence)
assessStationarity(sequence, nblocks)
divergenceTest(sequence, hypothetic)
``` |

`sequence` |
An empirical sequence. |

`...` |
Parameters for chi-square test. |

`nblocks` |
Number of blocks. |

`hypothetic` |
A transition matrix for a hypothetic markov chain sequence. |

Verification result

Tae Seung Kang, Giorgio Alfredo Spedicato

Monika, Anderson and Goodman.

`markovchain`

1 2 3 4 5 6 7 | ```
sequence <- c("a", "b", "a", "a", "a", "a", "b", "a", "b",
"a", "b", "a", "a", "b", "b", "b", "a")
mcFit <- markovchainFit(data = sequence, byrow = FALSE)
verifyMarkovProperty(sequence)
assessOrder(sequence)
assessStationarity(sequence, 1)
divergenceTest(sequence, mcFit$estimate@transitionMatrix)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.