decode: Local and global decoding

Description Usage Arguments Value

View source: R/General_functions.R

Description

Calculation of local and global decoding given the dataset and the coresponding parameters of the HMM

Usage

1
2
decode(x, m, L1, L2, L3 = NULL, L4 = NULL, L5 = NULL, gamma, delta,
  theta, multi = FALSE)

Arguments

x

a sample of a Hidden Markov Model

m

the number of states

L1

likelihood of the first hidden state

L2

likelihood of the second hidden state

L3

optional. likelihood of the third hidden state

L4

optional. likelihood of the 4th hidden state

L5

optional. likelihood of the 5th hidden state

gamma

estimated Gamma matrix from previous estimation

delta

estimated Delta vector from previous estimation

theta

estimated Theta values from previous estimation

multi

parameter. TRUE if multifactor HMM() is used

Value

Returns the path of the local and global decoding as well as a statement, whether the two paths differ.


pneff93/HMM documentation built on Oct. 26, 2019, 8:16 a.m.