latents: Multilevel Latent Profile, Class and Transition Models

Provides functions for fitting multilevel latent profile analysis, latent class, and latent transition models for continuous, categorical, and mixed-type variables. Models are estimated by expectation-maximization, handle missing data, and provide standard and robust standard errors. Model selection is supported by information criteria, entropy, classification diagnostics, and a parametric bootstrap likelihood ratio test. Covariates can be related to latent class membership using three-step methods with correction for classification error. Latent transition models estimate transitions between latent profiles across ordered occasions and are compatible with the 'tna' package for network and sequence analysis. The multilevel mixture formulation follows Vermunt (2003) <doi:10.1111/j.0081-1750.2003.t01-1-00131.x>.

Version: 0.9.21
Depends: R (≥ 4.1.0)
Imports: stats, graphics, grDevices, utils
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, tna, mclust, mice, ggplot2, MASS, withr
Published: 2026-10-16
DOI: 10.32614/CRAN.package.latents (may not be active yet)
Author: Mohammed Saqr ORCID iD [aut, cre, cph], Sonsoles López-Pernas ORCID iD [aut]
Maintainer: Mohammed Saqr <saqr at saqr.me>
BugReports: https://github.com/mohsaqr/latents/issues
License: GPL-3
URL: https://pak.dynasite.org/latents/, https://github.com/mohsaqr/latents
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: latents results

Documentation:

Reference manual: latents.html , latents.pdf
Vignettes: Two-level latent class analysis (source, R code)
Multilevel latent profile analysis (source, R code)
Latent transition analysis (source, R code)

Downloads:

Package source: latents_0.9.21.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): latents_0.9.21.tgz, r-oldrel (arm64): latents_0.9.21.tgz, r-release (x86_64): latents_0.9.21.tgz, r-oldrel (x86_64): latents_0.9.21.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=latents to link to this page.