View source: R/order_selection.r
get_contingency_array | R Documentation |
Compute transitions of a given order
get_contingency_array(seq, order, states = NULL)
seq |
a vector containing observations from an stochastic process. |
order |
the order of the transitions to be computed (an integer). |
states |
the possible states of the Markov chain. If |
an array with the transitions in the format n_ijk, where i, j, k are in states(seq).
X <- rbinom(n = 1E5, size = 1, prob = 0.8)
get_contingency_array(X, order = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.