Convert a hmodel object to HMM constructor function calls
Arguments
- hmodel
A list of class
hmodel
, as returned in thehmodel
component of the fitted model object frommsm
.- hmmdist
TRUE
orFALSE
(see "Value" section).
Value
If hmmdist=TRUE
, returns a list of objects of class hmmdist
.
These are the kind of objects
returned by HMM constructor functions such
as hmmNorm
, hmmPois
etc. Therefore the list can be
passed as the hmodel
argument to msm
.
If hmmdist=FALSE
, returns a list comprised of the corresponding input
arguments for the constructor functions, i.e. parameter values of HMM emission
distributions. The list has one element per state. Each of these elements
has one element per parameter (for univariate HMMs), or one element per outcome
distribution, which in turn has one element per parameter (for multivariate HMMs).