We provide a detailed overview of the updated version of the R package LMest, which offers functionalities for estimating Markov chain and latent or hidden Markov models for time series and longitudinal data. This overview includes a description of the modeling structure, maximum-likelihood estimation based on the Expectation-Maximization algorithm, and related issues. Practical applications of these models are illustrated using real and simulated data with both categorical and continuous responses. The latter are handled under the assumption of the Gaussian distribution given the latent process. When describing the main functions of the package, we refer to potential applicative contexts across various fields. The LMest package introduces several key novelties compared to previous versions. It now handles missing responses under the missing-at-random assumption and provides imputed values. The implemented functions allow users to display and visualize model results. Additionally, the package includes functions to perform parametric bootstrap for inferential procedures and to simulate data with complex structures in longitudinal contexts.

Pennoni, F., Pandolfi, S., Bartolucci, F. (2025). LMest: An R Package for Estimating Generalized Latent Markov Models. THE R JOURNAL, 16(4), 74-101 [10.32614/RJ-2024-036].

LMest: An R Package for Estimating Generalized Latent Markov Models

Pennoni, F
;
2025

Abstract

We provide a detailed overview of the updated version of the R package LMest, which offers functionalities for estimating Markov chain and latent or hidden Markov models for time series and longitudinal data. This overview includes a description of the modeling structure, maximum-likelihood estimation based on the Expectation-Maximization algorithm, and related issues. Practical applications of these models are illustrated using real and simulated data with both categorical and continuous responses. The latter are handled under the assumption of the Gaussian distribution given the latent process. When describing the main functions of the package, we refer to potential applicative contexts across various fields. The LMest package introduces several key novelties compared to previous versions. It now handles missing responses under the missing-at-random assumption and provides imputed values. The implemented functions allow users to display and visualize model results. Additionally, the package includes functions to perform parametric bootstrap for inferential procedures and to simulate data with complex structures in longitudinal contexts.
Articolo in rivista - Articolo scientifico
Expectation-Maximization algorithm; measurement errors; transition probabilities; Viterbi algorithm
English
16-lug-2025
2025
16
4
74
101
open
Pennoni, F., Pandolfi, S., Bartolucci, F. (2025). LMest: An R Package for Estimating Generalized Latent Markov Models. THE R JOURNAL, 16(4), 74-101 [10.32614/RJ-2024-036].
File in questo prodotto:
File Dimensione Formato  
Pennoni-2025-The R Journal-VoR.pdf

accesso aperto

Tipologia di allegato: Publisher’s Version (Version of Record, VoR)
Licenza: Creative Commons
Dimensione 377.14 kB
Formato Adobe PDF
377.14 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/562941
Citazioni
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
Social impact