CalcTransitionMatrix: Calculate the Transition Matrix of a First-Order Markov Chain

Description Usage Arguments Value Examples

Description

Calculate the Transition Matrix of a First-Order Markov Chain

Usage

1
CalcTransitionMatrix(trans_counts)

Arguments

trans_counts

Matrix of transition counts

Value

Row-stochastic transition matrix of a first-order Markov chain.

Examples

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)

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