CalcTC_Mth_Order: Compute a Matrix of Transition Counts from an Observed...

Description Usage Arguments Value Examples

Description

Compute a Matrix of Transition Counts from an Observed Sequence (Arbitrary Order)

Usage

1
CalcTC_Mth_Order(event_seq, state_space, mc_order = 1)

Arguments

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.

Value

Returns a matrix of transition counts of a given order

Examples

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)

bvegetabile/ccber documentation built on May 10, 2019, 1:15 p.m.