Skip to content

LaMa

2.1.2

Fast Numerical Maximum Likelihood Estimation for Latent Markov Models

0packages depend
4.2Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Jan-Ole FischerFirst published 2024-06-0411 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 12.4 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.00
not tracked
Coverage
99%
Documentation · exports
11
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    11 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-25
    5 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-25
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 458 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
98%
Return-value docs
100%
References docs
14%

Downloads

4.2K
CRAN downloads in the past year
Rank #5,999 · ~12/day · ~354/mo
Daily download trend is not available in this view yet.
19130 days
1.4K90 days
4.2K1 year
Compare downloads with other packages →
Also on451 r2u14 autocran

Repository

Repository
19Stars
2Forks
0Open issues
0Open PRs
1Releases
966Commits
2Contributors
966 commits · Last activity 2026-08-03 · 0% stars, 30d

Stars over time

2026-02-11 · 162026-07-07 · 19

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/janolefi/lama on 2026-08-09.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Depends (2)
R >= 3.5.0RTMB
Imports (10)
RcppstatsutilsmethodsMatrixsplines2mgcvMASSnumDerivRTMBdist
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer · added in 2.1.0
Authors (1)
Author, Maintainer · added in 2.1.0
Listed in earlier versions (1)
no longer listed · 1.0.0 to 2.0.6
Package Timeline

11 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 2.1.2Latest
    2026-07-25 · current release · diff ↗
  • unarchivedReturned to CRAN
    2026-07-24
  • archivedRemoved from CRAN
    2026-07-15
    issues were not corrected in time
  • 2.1.1
    2026-05-13 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.1.0
    2026-03-16 · diff ↗
  • 2.0.6
    2025-09-23 · diff ↗
  • 2.0.5
    2025-06-15 · diff ↗
  • 2.0.4
    2025-06-05 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.3
    2025-01-29 · diff ↗
  • 2.0.2
    2024-11-20 · diff ↗
  • 2.0.1
    2024-11-13 · diff ↗
  • 2.0.0
    2024-11-12 · diff ↗
  • 1.0.0
    2024-06-04
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-06-04
Total releases
11 / 2 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
229 KB / 2 files
Download size
3.5 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("LaMa")
Fischer, J. (2026). LaMa: Fast Numerical Maximum Likelihood Estimation for Latent Markov Models (Version 2.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.LaMa

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for LaMa version 2.1.2 [Data set]. HJJB, LLC. Data release v2026-08-13. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-13, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy