Package: LCPA
Type: Package
Title: A General Framework for Latent Class and Profile Analysis
Version: 1.0.4
Date: 2026-09-2
Author: Haijiang Qin [aut, cre, cph] (ORCID:
    <https://orcid.org/0009-0000-6721-5653>),
  Lei Guo [aut, cph] (ORCID: <https://orcid.org/0000-0002-8273-3587>)
Authors@R: c(person(given = "Haijiang", 
                    family = "Qin", 
                    role = c("aut", "cre", "cph"), 
                    email = "haijiang133@outlook.com", 
                    comment = c(ORCID = "0009-0000-6721-5653")),
             person(given = "Lei", 
                    family = "Guo", 
                    role = c("aut", "cph"), 
                    email = "happygl1229@swu.edu.cn", 
                    comment = c(ORCID = "0000-0002-8273-3587")))
Maintainer: Haijiang Qin <haijiang133@outlook.com>
Description: Provides a unified framework for finite-mixture latent variable
  models, including latent class analysis (LCA), latent profile analysis (LPA),
  latent class/profile analysis with covariates, and latent transition analysis
  (LTA), within one consistent interface. Estimation methods include the
  expectation-maximization (EM) algorithm; neural network estimation, which
  requires 'Python' and its dependent libraries; integration with 'Mplus',
  which requires an installed copy of 'Mplus'; and stochastic EM (SEM) through
  the optional 'flexmix', 'Rmixmod', and 'RMixtComp' backends. 'flexmix' and the
  default 'Rmixmod' path perform configurable warm-up trajectories and promote
  the best candidates to full SEM replications. 'Rmixmod' additionally exposes
  its native strategy interface, including chained SEM-to-EM estimation,
  whereas 'RMixtComp' exposes its native SEM and Gibbs controls without the
  external warm-up stage. Model assessment includes the Akaike information
  criterion (AIC), Bayesian information criterion (BIC), Schwarz information
  criterion (SIC), consistent AIC (CAIC), approximate weight of evidence (AWE),
  sample-size-adjusted BIC (SABIC), entropy, and average posterior
  probabilities. Model-comparison procedures include the ordinary
  likelihood-ratio test, the Mplus TECH11 Vuong-Lo-Mendell-Rubin and adjusted
  Lo-Mendell-Rubin tests, and fixed-replicate or sequential parametric bootstrap
  likelihood-ratio tests. Standard errors can be estimated by nonparametric
  bootstrap, numerical observed information, or analytic observed information
  based on Louis' identity. Classification-error-adjusted maximum-likelihood
  and Bolck-Croon-Hagenaars three-step methods support covariates predicting
  latent membership, initial-status and transition regressions, and latent
  classes or states predicting continuous and categorical external observed
  dependent variables. Simulation,
  posterior-probability, classification-error,
  extraction, summary, plotting, model-adjustment, and update utilities are
  also provided for reproducible workflows.
License: GPL-3
Depends: R (>= 4.1.0)
Imports: reticulate, methods, CompQuadForm, clue, ggplot2, tidyr,
        dplyr, mvtnorm, Matrix, MASS, MplusAutomation, tidyselect,
        numDeriv, nloptr, patchwork, Rcpp, reshape2, scales
Suggests: flexmix, Rmixmod, RMixtComp, RMixtCompUtilities
LinkingTo: Rcpp, RcppArmadillo
Encoding: UTF-8
NeedsCompilation: yes
Collate: 'adjust.response.R' 'adjust.model.R' 'check.response.R'
        'compare.model.R' 'EM.LCA.R' 'EM.LPA.R' 'get.AvePP.R'
        'get.CEP.R' 'get.entropy.R' 'get.fit.index.R'
        'get.Log.Lik.LCA.R' 'get.Log.Lik.LPA.R' 'get.Log.Lik.LTA.R'
        'get.npar.LCA.R' 'get.npar.LPA.R' 'get.npar.LTA.R'
        'get.P.Z.Xn.LCA.R' 'get.P.Z.Xn.LPA.R' 'get.SE.R'
        'three.step.utils.R' 'ZY.utils.R' 'ML.ZY.utils.R'
        'BCH.XZ.utils.R' 'install_python_dependencies.R' 'Kmeans.LCA.R'
        'Kmeans.LPA.R' 'LCA.R' 'ML.XZ.LCPA.R' 'BCH.XZ.LCPA.R'
        'XZ.LCPA.R' 'BCH.ZY.LCPA.R' 'ML.ZY.LCPA.R' 'ZY.LCPA.R' 'LCPA.R'
        'logit.R' 'LPA.R' 'ML.XZ.LTA.R' 'BCH.XZ.LTA.R' 'XZ.LTA.R'
        'BCH.ZY.LTA.R' 'ML.ZY.LTA.R' 'ZY.LTA.R' 'LTA.R' 'LRT.test.R'
        'LRT.test.Bootstrap.R' 'LRT.test.VLMR.R' 'Mplus.LCA.R'
        'Mplus.LPA.R' 'normalize.R' 'plotResponse.R' 'Rmixmod.utils.R'
        'Rmixmod.LCA.R' 'Rmixmod.LPA.R' 'RMixtComp.utils.R'
        'RMixtComp.LCA.R' 'RMixtComp.LPA.R' 'flexmix.utils.R'
        'flexmix.LCA.R' 'flexmix.LPA.R' 'RcppExports.R' 'rdirichlet.R'
        'S3extract.R' 'S3plot.R' 'S3print.R' 'S3summary.R' 'S3update.R'
        'simulation.utils.R' 'sim.correlation.R' 'sim.LCA.R'
        'sim.LPA.R' 'sim.LTA.R' 'tools.R' 'utils.R' 'zzz.R'
Repository: CRAN
Config/roxygen2/version: 8.1.0
Packaged: 2026-09-06 06:50:40 UTC; Haiji
Date/Publication: 2026-09-06 22:50:10 UTC
Built: R 4.7.0; x86_64-w64-mingw32; 2026-09-07 07:34:32 UTC; windows
Archs: x64
