Package: seqHMM 2.2.0
seqHMM: Mixture Hidden Markov Models for Social Sequence Data and Other Multivariate, Multichannel Categorical Time Series
Designed for estimating variants of hidden (latent) Markov models (HMMs), mixture HMMs, and non-homogeneous HMMs (NHMMs) for social sequence data and other categorical time series. Special cases include feedback-augmented NHMMs, Markov models without latent layer, 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 as well as initial, transition and emission probabilities in NHMMs. The package provides functions for evaluating and comparing models, as well as functions for visualizing of multichannel sequence data and HMMs. For NHMMs, methods for computing average causal effects and marginal state and emission probabilities are available. Models are estimated using maximum likelihood via the EM algorithm or direct numerical maximization with analytical gradients. Documentation is available via several vignettes, and Helske and Helske (2019, <doi:10.18637/jss.v088.i03>). For methodology behind the NHMMs, see Helske (2025, <doi:10.48550/arXiv.2503.16014>).
Authors:
seqHMM_2.2.0.tar.gz
seqHMM_2.2.0.zip(r-4.7)seqHMM_2.2.0.zip(r-4.6)seqHMM_2.2.0.zip(r-4.5)
seqHMM_2.2.0.tgz(r-4.6-x86_64)seqHMM_2.2.0.tgz(r-4.6-arm64)seqHMM_2.2.0.tgz(r-4.5-x86_64)seqHMM_2.2.0.tgz(r-4.5-arm64)
seqHMM_2.2.0.tar.gz(r-4.7-arm64)seqHMM_2.2.0.tar.gz(r-4.7-x86_64)seqHMM_2.2.0.tar.gz(r-4.6-arm64)seqHMM_2.2.0.tar.gz(r-4.6-x86_64)
seqHMM_2.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
seqHMM/json (API)
NEWS
| # Install 'seqHMM' in R: |
| install.packages('seqHMM', repos = c('https://helske.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/helske/seqhmm/issues
- biofam3c - Three-channel biofam data
- colorpalette - Color palettes
- fanhmm_leaves - A feedback-augmented non-homogeneous hidden Markov Model for leaves data
- hmm_biofam - Hidden Markov model for the biofam data
- hmm_mvad - Hidden Markov model for the mvad data
- leaves - Synthetic data on fathers' parental leaves in Finland
- mhmm_biofam - Mixture hidden Markov model for the biofam data
- mhmm_mvad - Mixture hidden Markov model for the mvad data
categorical-dataem-algorithmhidden-markov-modelshmmmixture-markov-modelstime-seriesopenblascppopenmp
Last updated from:f81ca78806. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 580 | ||
| linux-devel-x86_64 | OK | 560 | ||
| source / vignettes | OK | 805 | ||
| linux-release-arm64 | OK | 569 | ||
| linux-release-x86_64 | OK | 462 | ||
| macos-release-arm64 | OK | 424 | ||
| macos-release-x86_64 | OK | 1038 | ||
| macos-oldrel-arm64 | OK | 385 | ||
| macos-oldrel-x86_64 | OK | 736 | ||
| windows-devel | OK | 798 | ||
| windows-release | OK | 736 | ||
| windows-oldrel | OK | 721 | ||
| wasm-release | OK | 380 |
Exports:alphabetbootstrap_coefsbuild_hmmbuild_lcmbuild_mhmmbuild_mmbuild_mmmcluster_namescluster_names<-data_to_stslistestimate_mnhmmestimate_nhmmfit_modelforward_backwardget_cluster_probsget_emission_probsget_initial_probsget_marginalsget_transition_probsgridplothidden_pathsmc_to_scmc_to_sc_datamost_probable_clustermssplotpermute_statesplot_colorsposterior_cluster_probabilitiesposterior_probsseparate_mhmmseqdefseqstatfsimulate_emission_probssimulate_hmmsimulate_initial_probssimulate_mhmmsimulate_mnhmmsimulate_nhmmsimulate_transition_probssort_sequencessspssplotstacked_sequence_plotstate_namesstate_names<-stslist_to_datatrim_model
Dependencies:backportsbitbit64bootcheckmateclicliprclustercodetoolscollapsecolorspacecommonmarkcpp11crayoncurldata.tabledigestdplyrfarverforcatsfuturefuture.applygenericsggh4xggplot2ggrepelggseqplotggtextglobalsgluegridBasegridtextgtablehavenhmsigraphisobandjpeglabelinglatticelhslifecyclelistenvlitedownmagrittrmarkdownMASSMatrixmgcvnlmenloptrnumDerivparallellypatchworkpermutepillarpkgconfigpngprettyunitsprogressprogressrpurrrR6rbibutilsRColorBrewerRcppRcppArmadilloRcppHungarianRdpackreadrrlangS7scalesstringistringrtibbletidyrtidyselectTraMineRtzdbutf8vctrsveganviridisLitevroomwithrxfunxml2
Examples and tips for estimating Markovian models with seqHMM
Rendered fromseqHMM_estimation.Rnwusingknitr::knitron May 14 2026.Last update: 2018-05-03
Started: 2017-03-30
Mixture Hidden Markov Models for Sequence Data: the seqHMM Package in R
Rendered fromseqHMM.Rnwusingknitr::knitron May 14 2026.Last update: 2025-09-24
Started: 2015-11-06
The main algorithms used in the seqHMM package
Rendered fromseqHMM_algorithms.Rnwusingknitr::knitron May 14 2026.Last update: 2025-09-24
Started: 2017-03-30
Visualization tools in the seqHMM package
Rendered fromseqHMM_visualization.Rnwusingknitr::knitron May 14 2026.Last update: 2025-09-24
Started: 2017-03-30
