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

3,157

Version

2.2.1

License

GPL (>= 2.0)

Maintainer

Cecile Proust-Lima

Last Published

February 12th, 2025

Functions in lcmm (2.2.1)

plot.predict

Plot of predicted trajectories and link functions
VarCov

Variance-covariance of the estimates
StandardMethods

Standard methods for estimated models
hlme

Estimation of latent class linear mixed models
ForInternalUse

For internal use only ...
update.mpjlcmm

Update the longitudinal submodels
ItemInfo

Conditional probabilities and item information given specified latent process values for lcmm or multlcmm object with ordinal outcomes.
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.
plot.Diffepoce

Plots
mpjlcmm

Estimation of multivariate joint latent class mixed models
predictlink

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

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

Predictions of the random-effects
VarExpl

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

Individual dynamic predictions from a joint latent class model
Diffepoce

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

Automatic grid search
summaryplot

Summary of models
VarCovRE

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

Plot of individual dynamic predictions
fitY

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

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

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

Maximum likelihood estimates
externVar

Estimation of a secondary regression model after the estimation of a primary latent class model
plot.cuminc

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

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

Plot of information functions
summarytable

Summary of models
plot

Plot of a fitted model
xclass

Cross classifications
simulate.lcmm

Data simulation according to models from lcmm package
loglik

Wrapper to the Fortran subroutines computing the log-likelihood
Jointlcmm

Estimation of joint latent class models for longitudinal and time-to-event data
print.lcmm

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

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

Simulated dataset simdataHADS
postprob

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

Posterior classification and class-membership probabilities
WaldMult

Multivariate Wald Test
permut

Permutation of the latent classes
data_hlme

Simulated dataset for hlme function
paquid

Longitudinal data on cognitive and physical aging in the elderly
cuminc

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

Simulated dataset for lcmm and Jointlcmm functions
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 (marginal) or individual data (subject specific in case of hlme).
predictYback

Marginal predictions in the natural scale of a pre-transformed outcome
summary.lcmm

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