Description Usage Arguments Details Value Author(s)
View source: R/select_depmix.R
select_depmix
select based on simulated annealing depmix
or
mix
models.
1 | select_depmix(object, test, mode, infer)
|
object |
An object of class |
object |
Parameters of NHHMM (if object is not present) as a list() with components: ns (number of states), fla (formula for observed process), trs (formula for process of transitions), family (family of the distributions of the responses), params (parameters of the fitted NHHMM). |
test |
Data set for predictions. |
mode |
Indicates whether the mode state will be used for predictions (most probable states' sequence will be used otherwise) |
Prediction function.
predict_depmix
returns a vector of values of linear predictor (for glm you should further transform them through the appropriate link function)
and the corresponding states of the latent process:
y
:Values of the linear predictor.
s
:States corresponding to the values of the linear predictor.
Aliaksandr Hubin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.