Constructs Asymmetric Hidden Markov Models

Asymmetric hidden Markov model (HMM-A) learning. HMM-As are similar to regular HMMs, but use Bayesian Networks (BNs) in their emission distribution. The HMM-As can therefore offer more problem insight [Bueno et al. 2017, ].


How to use

Travis-ci status: Travisstatus

This R package can be used for the analysis of asymmetric hidden Markov models. The files together form a package.

After the package has been installed, you can load it using:

library(hmma)

After the package has been loaded, you find its description, functios and vignettes by:

?hmma

All package functions and files must be organised in the R folder. To use and test the package, place files in the Development folder.

A demonstration:

# Show part of the data set
head(hmmaExampleData$x, 10)

# We specify the amount of states and fit the model
amountOfStates <- 3
fit <- learnModel(hmmaExampleData, amountOfStates = amountOfStates)

# Visualise the model
visualise(fit)

# Load required libraries and files for visualising the Bayesian networks
library(bnlearn)
for (i in 1:amountOfStates) {
  graphviz.plot(fit$parms.emission[[i]])
}

The datafile must comply with the required format (more on that later). An example dataset is provided in hmmaExampleData.

For a full demonstration, please refer to the introduction vignette that can be found by:

browseVignettes(package = "hmma")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("hmma")

1.1.0 by Arjen Hommersom, 6 years ago


Browse source code at https://github.com/cran/hmma


Authors: Marcos L.P Bueno [aut] , Arjen Hommersom [aut, cre] , Joop Thibaudier [aut] , Marco Scutari [ctb] , Robert Ness [ctb] , Robert Gentleman and Ross Ihaka [cph] , The R Development Core Team [cph] , The R Foundation [cph]


Documentation:   PDF Manual  


GPL-3 license


Imports bnlearn, mhsmm, MCMCpack, Rgraphviz, graph, methods

Suggests knitr, testthat, rmarkdown


See at CRAN