View source: R/order_selection.r
compute_order_BF | R Documentation |
Compute the Bayes factor comparing a second-order Markov model to a first-order one.
compute_order_BF(seq)
seq |
a vector containing observations from an stochastic process. |
the approximate Bayes factor comparing a second- to a first-order Markov chain model for seq
.
X <- rbinom(n = 1E5, size = 1, prob = 0.8)
compute_order_BF(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.