A variety of latent Markov models, including hidden Markov models, hidden semi-Markov models, state-space models and continuous-time variants can be formulated and estimated within the same framework via directly maximising the likelihood function using the so-called forward algorithm. Applied researchers often need custom models that standard software does not easily support. Writing tailored 'R' code offers flexibility but suffers from slow estimation speeds. We address these issues by providing easy-to-use functions (written in 'C++' for speed) for common tasks like the forward algorithm. These functions can be combined into custom models in a Lego-type approach, offering up to 10-20 times faster estimation via standard numerical optimisers. To aid in building fully custom likelihood functions, several vignettes are included that show how to simulate data from and estimate all the above model classes.
Version: 2.0.5 Depends: R (≥ 3.5.0), RTMB Imports: Rcpp, mgcv, Matrix, stats, utils, MASS, splines2, methods, circular, sn, numDeriv LinkingTo: Rcpp, RcppArmadillo Suggests: knitr, rmarkdown, testthat (≥ 3.0.0), PHSMM, MSwM, scales Published: 2025-06-15 DOI: 10.32614/CRAN.package.LaMa Author: Jan-Ole Koslik [aut, cre] Maintainer: Jan-Ole Koslik <jan-ole.koslik at uni-bielefeld.de> License: GPL-3 URL: https://janoleko.github.io/LaMa/ NeedsCompilation: yes Materials: README CRAN checks: LaMa results Documentation: Reference manual: LaMa.pdf Vignettes: Continuous-time_HMMs (source, R code)Please use the canonical form https://CRAN.R-project.org/package=LaMa to link to this page.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4