compute_stationarity_BF | R Documentation |
Compute the Bayes factor testing stationarity of a Markov chain.
compute_stationarity_BF(seq, L = 10, states = NULL)
seq |
a vector containing observations from an stochastic process. |
L |
an integer specifying how many windows will be compared |
states |
the possible states of the Markov chain. If |
the approximate Bayes factor testing H1 = not stationary vs H0 = stationary.
X <- rbinom(n = 1E5, size = 1, prob = 0.8)
compute_stationarity_BF(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.