Simulate from a hidden Markov model

hmm_simulate(n, x0, transition_matrix, sim_observation)

Arguments

n

the number of observations

x0

the initial distribution

transition_matrix

the transition matrix

sim_observation

the observation distribution p(y_t|x_t)

Value