Learn R Programming

LTCDM (version 1.1.0)

Latent Transition Cognitive Diagnosis Model with Covariates

Description

Implementation of the three-step approach of (latent transition) cognitive diagnosis model (CDM) with covariates. This approach can be used for single time-point situations (cross-sectional data) and multiple time-point situations (longitudinal data) to investigate how the covariates are associated with attribute mastery. For multiple time-point situations, the three-step approach of latent transition CDM with covariates allows researchers to assess changes in attribute mastery status and to evaluate the covariate effects on both the initial states and transition probabilities over time using latent logistic regression. Because stepwise approaches often yield biased estimates, correction for classification error probabilities (CEPs) is considered in this approach. The three-step approach for latent transition CDM with covariates involves the following steps: (1) fitting a CDM to the response data without covariates at each time point separately, (2) assigning examinees to latent states at each time point and computing the associated CEPs, and (3) estimating the latent transition CDM with the known CEPs and computing the regression coefficients. The method was proposed in Liang et al. (2023) and demonstrated using mental health data in Liang et al. (in press; annotated R code and data utilized in this example are available in Mendeley data) .

Copy Link

Version

Install

install.packages('LTCDM')

Monthly Downloads

142

Version

1.1.0

License

GPL-3

Maintainer

Qianru Liang

Last Published

August 21st, 2025

Functions in LTCDM (1.1.0)

L_step3

Step 3 estimation for latent logistic regression coefficients
dat0

Data Set dat0
CEP_t

Compute classification error probabilities for attributes at different time points
step3.est

Step 3 estimation for latent logistic regression coefficients
step3_1t

Result function for latent regression
CEP_1t

Compute classification error probabilities for attributes
update_class

Classification update using the Bayes' Theorem
trans.matrix

Compute transition matrix
dat1

Data Set dat1
cep

Data Set cep
step3.output

Data Set step3.output
Q

Data Set Q