EM: EM Algorithm for Fitting the Hidden Markov Model

Description Usage Arguments Value

View source: R/EM.R

Description

This function implements the EM algorithm to estimate HMM parameters, and find the best sequence of hidden states based on model fitting.

Usage

1

Arguments

initial.value

Output from initial.value function.

obs

Output from read.process function.

Value

res A matrix contains tansformed observations for each bin and the predicted direction for each bin (0-normal, 1-hyper, 2-hypo).

para Fitted parameters for HMM.


Tieming/A-Bayesian-hidden-Markov-model-for-detecting-DMRs documentation built on May 29, 2019, 12:36 p.m.