Learn R Programming

RcppHMM (version 1.2.2.1)

Rcpp Hidden Markov Model

Description

Collection of functions to evaluate sequences, decode hidden states and estimate parameters from a single or multiple sequences of a discrete time Hidden Markov Model. The observed values can be modeled by a multinomial distribution for categorical/labeled emissions, a mixture of Gaussians for continuous data and also a mixture of Poissons for discrete values. It includes functions for random initialization, simulation, backward or forward sequence evaluation, Viterbi or forward-backward decoding and parameter estimation using an Expectation-Maximization approach.

Copy Link

Version

Install

install.packages('RcppHMM')

Monthly Downloads

187

Version

1.2.2.1

License

GPL (>= 3)

Maintainer

Roberto Cardenas-Ovando

Last Published

September 17th, 2025

Functions in RcppHMM (1.2.2.1)

setParameters

Set the model parameters
verifyModel

Model parameter verification
setNames

Set the names of the model
viterbi

Viterbi algorithm for hidden state decoding
initGHMM

Random Initialization for a Hidden Markov Model with emissions modeled as continuous variables
initPHMM

Random Initialization for a Hidden Markov Model with emissions modeled as discrete variables
initHMM

Random Initialization for a Hidden Markov Model with emissions modeled as categorical variables
generateObservations

Generate observations given a model
evaluation

Observed sequence evaluation given a model
forwardBackward

Forward-backward algortihm for hidden state decoding
loglikelihood

Evaluation of multiple observed sequences given a model
learnEM

Expectation-Maximization algorithm to estimate the model parameters
Change Log

Changes Made to Package RcppHMM
RcppHMM-package

Overview of Package RcppHMM