Simulate a time series from a Gaussian-hidden Markov model
Arguments
- Tp
An
integer, the number of observations.- N
An
integer, the number of states.- theta
A
numericvector of model parameters.The first
N*(N-1)elements are the logarithms of the non-diagonal elements of the transition probability matrix.The next
Nelements are the mean values of the state-dependent normal distributions.The last
Nelements are the logarithms of the standard deviations of the state-dependent normal distributions.
See also
f_ll_hmm() for computing the log-likelihood of a Gaussian-hidden Markov
model

