Description Usage Arguments Value Examples
Calculate the Transition Matrix of a First-Order Markov Chain
1 | CalcTransitionMatrix(trans_counts)
|
trans_counts |
Matrix of transition counts |
Row-stochastic transition matrix of a first-order Markov chain.
1 2 3 4 | t_mat <- matrix(c(0.3, 0.7, 0.6, 0.4), 2,2, T)
sim_mc <- SimulateMarkovChain(t_mat, n_sims = 500)
tc <- CalcTransitionCounts(sim_mc)
tm <- CalcTransitionMatrix(tc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.