LCPA1.0.0 package

A General Framework for Latent Classify and Profile Analysis

adjust.response

Adjust Categorical Response Data for Polytomous Items

check.response

Validate response matrix against expected polytomous category counts

compare.model

Model Comparison Tool

extract

S3 Methods: extract

get.npar.LCA

Calculate Number of Free Parameters in Latent Class Analysis

get.npar.LPA

Calculate Number of Free Parameters in Latent Profile Analysis

get.npar.LTA

Calculate Number of Free Parameters in Latent Transition Analysis

get.P.Z.Xn.LCA

Compute Posterior Latent Class Probabilities Based on Fixed Parameters

get.P.Z.Xn.LPA

Compute Posterior Latent Profile Probabilities Based on Fixed Paramete...

get.SE

Compute Standard Errors

install_python_dependencies

Install Required Python Dependencies for Neural Latent Variable Models

Kmeans.LCA

Initialize LCA Parameters via K-means Clustering

LCA

Fit Latent Class Analysis Models

LCPA

Latent Class/Profile Analysis with Covariates

logit

Compute the Logistic (Sigmoid) Function

LPA

Fit Latent Profile Analysis

LRT.test.Bootstrap

Bootstrap Likelihood Ratio Test

LRT.test

Likelihood Ratio Test

LRT.test.VLMR

Lo-Mendell-Rubin likelihood ratio test

LTA

Latent Transition Analysis (LTA)

normalize

Column-wise Z-Score Standardization

plotResponse

Visualize Response Distributions with Density Plots

print

S3 Methods: print

rdirichlet

Generate Random Samples from the Dirichlet Distribution

sim.correlation

Generate a Random Correlation Matrix via C-Vine Partial Correlations

sim.LCA

Simulate Data for Latent Class Analysis

sim.LPA

Simulate Data for Latent Profile Analysis

sim.LTA

Simulate Data for Latent Transition Analysis (LTA)

summary

S3 Methods: summary

update

S3 Methods: update

get.AvePP

Calculate Average Posterior Probability (AvePP)

get.CEP

Compute Classification Error Probability (CEP) Matrices

get.entropy

Calculate Classification Entropy

get.fit.index

Calculate Fit Indices

get.Log.Lik.LCA

Calculate Log-Likelihood for Latent Class Analysis

get.Log.Lik.LPA

Calculate Log-Likelihood for Latent Profile Analysis

get.Log.Lik.LTA

Calculate Log-Likelihood for Latent Transition 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.

  • Maintainer: Haijiang Qin
  • License: GPL-3
  • Last published: 2026-01-22