Description Usage Arguments Value Examples
Compute a Matrix of Transition Counts from an Observed Sequence (Arbitrary Order)
1 | CalcTC_Mth_Order(event_seq, state_space, mc_order = 1)
|
event_seq |
Vector of observations. |
state_space |
vector composed of all of the state space |
mc_order |
order of the Markov chain. Defaults to 1. |
Returns a matrix of transition counts of a given order
1 2 3 | t_mat <- matrix(c(0.3, 0.7, 0.6, 0.4), 2,2, T)
sim_mc <- SimulateMarkovChain(t_mat, n_sims = 500)
tc2 <- CalcTC_Mth_Order(sim_mc, 1:2, mc_order=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.