LCPA: A General Framework for Latent Classify and Profile Analysis

A unified latent class modeling framework that encompasses both latent class analysis (LCA) and latent profile analysis (LPA), offering a one-stop solution for latent class modeling. It implements state-of-the-art parameter estimation methods, including the expectation–maximization (EM) algorithm, neural network estimation (NNE; requires users to have 'Python' and its dependent libraries installed on their computer), and integration with 'Mplus' (requires users to have 'Mplus' installed on their computer). In addition, it provides commonly used model fit indices such as the Akaike information criterion (AIC) and Bayesian information criterion (BIC), as well as classification accuracy measures such as entropy. The package also includes fully functional likelihood ratio tests (LRT) and bootstrap likelihood ratio tests (BLRT) to facilitate model comparison, along with bootstrap-based and observed information matrix-based standard error estimation. Furthermore, it supports the standard three-step approach for LCA, LPA, and latent transition analysis (LTA) with covariates, enabling detailed covariate analysis. Finally, it includes several user-friendly auxiliary functions to enhance interactive usability.

Version: 1.0.0
Depends: R (≥ 4.1.0)
Imports: reticulate, clue, ggplot2, tidyr, dplyr, mvtnorm, Matrix, MASS, MplusAutomation, tidyselect, numDeriv, nloptr, Rcpp (≥ 1.0.0)
LinkingTo: Rcpp, RcppArmadillo
Published: 2026-01-22
DOI: 10.32614/CRAN.package.LCPA (may not be active yet)
Author: Haijiang Qin ORCID iD [aut, cre, cph], Lei Guo ORCID iD [aut, cph]
Maintainer: Haijiang Qin <haijiang133 at outlook.com>
License: GPL-3
NeedsCompilation: yes
Materials: NEWS
CRAN checks: LCPA results

Documentation:

Reference manual: LCPA.html , LCPA.pdf

Downloads:

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

Linking:

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

mirror server hosted at Truenetwork, Russian Federation.