Learn R Programming

dagHMM (version 0.1.1)

Directed Acyclic Graph HMM with TAN Structured Emissions

Description

Hidden Markov models (HMMs) are a formal foundation for making probabilistic models of linear sequence. They provide a conceptual toolkit for building complex models just by drawing an intuitive picture. They are at the heart of a diverse range of programs, including genefinding, profile searches, multiple sequence alignment and regulatory site identification. HMMs are the Legos of computational sequence analysis. In graph theory, a tree is an undirected graph in which any two vertices are connected by exactly one path, or equivalently a connected acyclic undirected graph. Tree represents the nodes connected by edges. It is a non-linear data structure. A poly-tree is simply a directed acyclic graph whose underlying undirected graph is a tree. The model proposed in this package is the same as an HMM but where the states are linked via a polytree structure rather than a simple path.

Copy Link

Version

Install

install.packages('dagHMM')

Monthly Downloads

130

Version

0.1.1

License

GPL (>= 2.0.0)

Maintainer

Prajwal Bende

Last Published

July 18th, 2025

Functions in dagHMM (0.1.1)

baumWelch

Inferring the parameters of a dag Hidden Markov Model via the Baum-Welch algorithm
initHMM

Initializing dagHMM with given parameters
calc_emis

Calculating the probability of occurance of particular values of covariates at a node given the value of target.
fwd_seq_gen

Calculate the order in which nodes in the dag should be traversed during the forward pass(roots to leaves)
forward

Infer the forward probabilities for all the nodes of the dagHMM
backward

Infer the backward probabilities for all the nodes of the dagHMM
noisy_or

Calculating the probability of transition from multiple nodes to given node in the dag
gen_emis

Generating the inital emission probability distribution of the covariates in TAN structure.
baumWelchRecursion

Implementation of the Baum Welch Algorithm as a special case of EM algorithm
bwd_seq_gen

Calculate the order in which nodes in the dag should be traversed during the backward pass(leaves to roots)