sim.mc {mhsmm}R Documentation

Markov chain simulation

Description

Simulates a Markov chain

Usage

sim.mc(init, transition, N)

Arguments

init The distribution of states at the first time step
transition The transition probability matrix of the Markov chain
N The number of observations to simulate

Value

A vector of integers representing the state sequence.

Author(s)

Jared O'Connell


[Package mhsmm version 0.1.0 Index]