Description Usage Arguments Details Value Author(s) References Examples
hmm
fits a hidden Markov model to its first argument.
lca
fits a latent class model or mixture model to its first
argument.
Both functions provide an easy user-interface to the functions provided in depmixS4 by automagically setting some argument values.
1 2 |
data |
(columns of) a |
nstates |
the required number of states of the hidden Markov model. |
nclasses |
the required number of classes of the mixture or latent class model. |
fit |
|
ntimes |
the lengths of time series in argument |
family |
(a list of) name(s) of the distribution(s) to be used in
fitting; if provided, it should have length of the number of the number
of columns in |
verbose |
|
... |
not currently used. |
The distributions used in fitting models are the multinomial
for
factor
data columns and gaussian
for numeric
data
columns. Data columns are treated as conditionally independent variables.
Use makeDepmix
in the depmixS4 package to specify multivariate
distributions.
hmm
returns a depmix
or depmix.fitted
object depending
on the value of the fit
argument; lca
similarly returns
either a mix
or mix.fitted
object.
All these can be print
'ed and summary
'zed.
Ingmar Visser
Visser, I., & Speekenbrink, M. (2010). depmixS4: an R-package for hidden Markov models. Journal of Statistical Software, 36(7), 1-21.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.