Learn R Programming

⚠️There's a newer version (1.2.6) of this package.Take me there.

seqHMM (version 1.1.0)

Mixture Hidden Markov Models for Social Sequence Data and Other Multivariate, Multichannel Categorical Time Series

Description

Designed for fitting hidden (latent) Markov models and mixture hidden Markov models for social sequence data and other categorical time series. Also some more restricted versions of these type of models are available: Markov models, mixture Markov models, and latent class models. The package supports models for one or multiple subjects with one or multiple parallel sequences (channels). External covariates can be added to explain cluster membership in mixture models. The package provides functions for evaluating and comparing models, as well as functions for visualizing of multichannel sequence data and hidden Markov models. Models are estimated using maximum likelihood via the EM algorithm and/or direct numerical maximization with analytical gradients. All main algorithms are written in C++ with support for parallel computation. Documentation is available via several vignettes in this page, and the paper by Helske and Helske (2019, ).

Copy Link

Version

Install

install.packages('seqHMM')

Monthly Downloads

594

Version

1.1.0

License

GPL (>= 2)

Maintainer

Jouni Helske

Last Published

June 18th, 2021

Functions in seqHMM (1.1.0)

build_mmm

Build a Mixture Markov Model
biofam3c

Three-channel biofam data
estimate_coef

Estimate Regression Coefficients of Mixture Hidden Markov Models
build_lcm

Build a Latent Class Model
seqdef

Imported Functions from TraMineR
build_mhmm

Build a Mixture Hidden Markov Model
build_hmm

Build a Hidden Markov Model
fit_model

Estimate Parameters of (Mixture) Hidden Markov Models and Their Restricted Variants
colorpalette

Color palettes
build_mm

Build a Markov Model
logLik.mhmm

Log-likelihood of the Mixture Hidden Markov Model
logLik.hmm

Log-likelihood of the Hidden Markov Model
hmm_mvad

Hidden Markov model for the mvad data
forward_backward

Forward and Backward Probabilities for Hidden Markov Model
gridplot

Plot Multidimensional Sequence Plots in a Grid
hmm_biofam

Hidden Markov model for the biofam data
print.hmm

Print Method for a Hidden Markov Model
posterior_probs

Posterior Probabilities for (Mixture) Hidden Markov Models
hidden_paths

Most Probable Paths of Hidden States
plot.hmm

Plot hidden Markov models
plot.mhmm

Interactive Plotting for Mixed Hidden Markov Model (mhmm)
mc_to_sc_data

Merge Multiple Sequence Objects into One (from Multichannel to Single Channel Data)
mhmm_biofam

Mixture hidden Markov model for the biofam data
separate_mhmm

Reorganize a mixture hidden Markov model to a list of separate hidden Markov models (covariates ignored)
mc_to_sc

Transform a Multichannel Hidden Markov Model into a Single Channel Representation
plot.ssp

Stack Multichannel Sequence Plots and/or Most Probable Paths Plots from Hidden Markov Models
plot_colors

Plot Colorpalettes
mssplot

Interactive Stacked Plots of Multichannel Sequences and/or Most Probable Paths for Mixture Hidden Markov Models
mhmm_mvad

Mixture hidden Markov model for the mvad data
vcov.mhmm

Variance-Covariance Matrix for Coefficients of Covariates of Mixture Hidden Markov Model
simulate_hmm

Simulate hidden Markov models
seqHMM

The seqHMM package
ssp

Define Arguments for Plotting Multichannel Sequences and/or Most Probable Paths from Hidden Markov Models
ssplot

Stacked Plots of Multichannel Sequences and/or Most Probable Paths from Hidden Markov Models
simulate_initial_probs

Simulate Parameters of Hidden Markov Models
simulate_mhmm

Simulate Mixture Hidden Markov Models
trim_model

Trim Small Probabilities of Hidden Markov Model
seqHMM-deprecated

Deprecated function(s) in the seqHMM package
summary.mhmm

Summary method for mixture hidden Markov models