Package: LaMa 2.1.1

Jan-Ole Fischer
LaMa: Fast Numerical Maximum Likelihood Estimation for Latent Markov Models
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.
Authors:
LaMa_2.1.1.tar.gz
LaMa_2.1.1.zip(r-4.7)LaMa_2.1.1.zip(r-4.6)LaMa_2.1.1.zip(r-4.5)
LaMa_2.1.1.tgz(r-4.6-x86_64)LaMa_2.1.1.tgz(r-4.6-arm64)LaMa_2.1.1.tgz(r-4.5-x86_64)LaMa_2.1.1.tgz(r-4.5-arm64)
LaMa_2.1.1.tar.gz(r-4.7-arm64)LaMa_2.1.1.tar.gz(r-4.7-x86_64)LaMa_2.1.1.tar.gz(r-4.6-arm64)LaMa_2.1.1.tar.gz(r-4.6-x86_64)
LaMa_2.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
LaMa/json (API)
| # Install 'LaMa' in R: |
| install.packages('LaMa', repos = c('https://janolefi.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/janolefi/lama/issues
Pkgdown/docs site:https://janolefi.github.io
Last updated from:c6037934fd. Checks:11 ERROR, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | ERROR | 190 | ||
| linux-devel-x86_64 | ERROR | 205 | ||
| source / vignettes | OK | 365 | ||
| linux-release-arm64 | ERROR | 263 | ||
| linux-release-x86_64 | ERROR | 208 | ||
| macos-release-arm64 | ERROR | 188 | ||
| macos-release-x86_64 | ERROR | 933 | ||
| macos-oldrel-arm64 | ERROR | 178 | ||
| macos-oldrel-x86_64 | ERROR | 336 | ||
| windows-devel | ERROR | 211 | ||
| windows-release | ERROR | 200 | ||
| windows-oldrel | ERROR | 175 | ||
| wasm-release | OK | 168 |
Exports:%sp%calc_trackIndcosinorddwelldgamma2dgmrf2dskewnormdvmdwrpcauchyforwardforward_gforward_hsmmforward_ihsmmforward_pforward_phsmmforward_sforward_spgeneratorgenerator_gLaMaColorsmake_matricesmake_matrices_densmake_matrices_oldmax0_smoothmax2MCreportmin0_smoothmin2penaltypenalty_unipenalty2pgamma2pred_matrixprocess_hid_formulaspseudo_respskewnormpvmqgamma2qremlqreml_oldqskewnormreportrgamma2rskewnormrvmrwrpcauchysdreport_outersdreportMCsmooth_dens_constructstateprobsstateprobs_gstateprobs_pstationarystationary_contstationary_ctstationary_pstationary_p_sparsestationary_sparsetpmtpm_conttpm_cttpm_embtpm_emb_gtpm_gtpm_g2tpm_hsmmtpm_hsmm2tpm_ihsmmtpm_ptpm_phsmmtpm_phsmm2tpm_thinnedviterbiviterbi_gviterbi_pzero_inflate
Dependencies:bootcircularclueclustergamlss.distlatticeMASSMatrixMatrixModelsmgcvmnormtmovMFmvtnormnlmenumDerivquantregRcppRcppArmadilloRcppEigenRTMBRTMBdistskmeansslamsnSparseMsplines2statmodsurvivalTMB
Last update: 2026-05-24
Started: 2024-02-26
Last update: 2026-05-24
Started: 2024-02-23
Last update: 2026-05-24
Started: 2024-01-24
Last update: 2026-05-24
Started: 2024-08-06
Last update: 2026-05-24
Started: 2024-04-02
Last update: 2026-05-24
Started: 2026-05-13
Last update: 2026-05-24
Started: 2024-10-30
Last update: 2026-05-23
Started: 2024-04-23
Last update: 2026-05-13
Started: 2024-02-23