Learn R Programming

lcmm

Installation

To install the CRAN version, use :

install.packages("lcmm")

To get the most recent update, install it from github :

remotes::install_github("CecileProust-Lima/lcmm")

Documentation

The complete documentation is available on the lcmm website https://CecileProust-Lima.github.io/lcmm/, along with vignettes for each of the main estimating function of the package.

A detailed companion paper is also available in Journal of Statistical Software :

Proust-Lima C, Philipps V, Liquet B. Estimation of Extended Mixed Models Using Latent Classes and Latent Processes: The R Package lcmm. Journal of Statistical Software, Articles. 2017;78(2):1-56. https://doi.org/10.18637/jss.v078.i02

And specific statistical models estimated are described in various statistical papers of the authors.

Issues

Issues and questions about the use of the lcmm package are reported on the github issue page https://github.com/CecileProust-Lima/lcmm/issues. Please check both opened and closed issues to make sure that the topic has not already been treated before creating a new issue. To report a bug, please provide a reproducible example.

We try to answer once a week and take requests into account as far as possible, but that's not our main job. Not all issues will be systematically solved.

Copy Link

Version

Install

install.packages('lcmm')

Monthly Downloads

4,713

Version

2.2.2

License

GPL (>= 2.0)

Maintainer

Cécile Proust-Lima

Last Published

November 20th, 2025

Functions in lcmm (2.2.2)

epoce

Estimators of the Expected Prognostic Observed Cross-Entropy (EPOCE) for evaluating predictive accuracy of joint latent class models estimated using Jointlcmm
gridsearch

Automatic grid search
externVar

Estimation of a secondary regression model after the estimation of a primary latent class model
fitY

Marginal predictions of the longitudinal outcome(s) in their natural scale from lcmm, Jointlcmm or multlcmm objects
data_lcmm

Simulated dataset for lcmm and Jointlcmm functions
estimates

Maximum likelihood estimates
dynpred

Individual dynamic predictions from a joint latent class model
cuminc

Predicted cumulative incidence of event according to a profile of covariates
data_hlme

Simulated dataset for hlme function
hlme

Estimation of latent class linear mixed models
plot.cuminc

Plot of predicted cumulative incidences according to a profile of covariates
plot

Plot of a fitted model
mpjlcmm

Estimation of multivariate joint latent class mixed models
loglik

Wrapper to the Fortran subroutines computing the log-likelihood
lcmm-package

Estimation of extended mixed models using latent classes and latent processes.
lcmm

Estimation of mixed-effect models and latent class mixed-effect models for different types of outcomes (continuous Gaussian, continuous non-Gaussian or ordinal)
plot.ItemInfo

Plot of information functions
permut

Permutation of the latent classes
predictL

Class-specific marginal or subject-specific predictions in the latent process scale for lcmm, Jointlcmm and multlcmm objects
predictRE

Predictions of the random-effects
predictY

Predictions (marginal and possibly subject-specific in some cases) of a hlme, lcmm, multlcmm or Jointlcmm object in the natural scale of the longitudinal outcome(s) computed from a profile of covariates.
predictClass

Posterior classification and class-membership probabilities
predictYback

Marginal predictions in the natural scale of a pre-transformed outcome
predictCor

Prediction of the Brownian motion or the autoregressive correlation
simdataHADS

Simulated dataset simdataHADS
plot.dynpred

Plot of individual dynamic predictions
plot.Diffepoce

Plots
plot.predict

Plot of predicted trajectories and link functions
multlcmm

Estimation of multivariate mixed-effect models and multivariate latent class mixed-effect models for multivariate longitudinal outcomes of possibly multiple types (continuous Gaussian, continuous non-Gaussian/curvilinear, ordinal) that measure the same underlying latent process.
sampleParameters

Sample models parameters
update.mpjlcmm

Update the longitudinal submodels
summarytable

Summary of models
paquid

Longitudinal data on cognitive and physical aging in the elderly
print.lcmm

Brief summary of a hlme, lcmm, Jointlcmm,multlcmm, epoce or Diffepoce objects
summary.lcmm

Summary of a hlme, lcmm, Jointlcmm, multlcmm, mpjlcmm, externSurv, externX epoce or Diffepoce objects
simulate.lcmm

Data simulation according to models from lcmm package
xclass

Cross classifications
postprob

Posterior classification stemmed from a hlme, lcmm, multlcmm or Jointlcmm estimation
summaryplot

Summary of models
predictlink

Confidence intervals for the estimated link functions from lcmm, Jointlcmm and multlcmm
predictYcond

Conditional predictions of a lcmm, multlcmm or Jointlcmm object in the natural scale of the longitudinal outcome(s) for specified latent process values.
ForInternalUse

For internal use only ...
VarCovRE

Estimates, standard errors and Wald test for the parameters of the variance-covariance matrix of the random effects.
Diffepoce

Difference of expected prognostic cross-entropy (EPOCE) estimators and its 95% tracking interval between two joint latent class models estimated with Jointlcmm
Jointlcmm

Estimation of joint latent class models for longitudinal and time-to-event data
ItemInfo

Conditional probabilities and item information given specified latent process values for lcmm or multlcmm object with ordinal outcomes.
VarExpl

Percentage of variance explained by the (latent class) linear mixed model regression
VarCov

Variance-covariance of the estimates
createVarianceMatrix

Compute the variance matrix
WaldMult

Multivariate Wald Test
StandardMethods

Standard methods for estimated models