mg.tdcm {TDCM}R Documentation

Estimating the multigroup transition diagnostic classification model (TDCM)

Description

This function estimates the multigroup TDCM (Madison & Bradshaw, 2018).

Usage

mg.tdcm(
  data,
  q.matrix,
  num.time.points,
  rule = "GDINA",
  groups,
  group.invariance = TRUE,
  item.invariance = TRUE,
  progress = FALSE
)

Arguments

data

a required N \times T \times I matrix. For each time point, binary item responses are in the columns.

q.matrix

a required I \times A matrix indicating which items measure which attributes.

num.time.points

the number of time points (i.e., measurement/testing occasions), integer \ge 2.

rule

the specific DCM to be employed. Currently accepts “GDINA”, “ACDM”, “DINA”, “GDINA1”, “GDINA2”, and so on. Default is “GDINA”, which is implemented with a logit link to estimate the LCDM. The “ACDM” rule will estimate the LCDM with only main effects. The “DINA” rule will estimate the DINA model. “GDINA1” will estimate the LCDM with only main effects, equivalent to “ACDM”. “GDINA2” will estimate the LCDM with up to two-way interaction effects. If rule is entered as a single string, that DCM will be assumed for each item. If entered as a vector, a DCM can be specified for each item.

groups

A required vector of group identifiers for multiple group estimation.

group.invariance

logical indicator for whether item parameter invariance should be assumed equal for all groups. Default = T. If specified as false, item parameters are not assumed equal for groups.

item.invariance

logical indicator for whether item parameter invariance should be constrained to be equal at each time point. Default = T. If specified as false, item parameters are not assumed equal over time.

progress

An optional logical indicating whether the function should print the progress of estimation.

Value

An object of class gdina with entries as indicated in the CDM package. For the TDCM-specific results (e.g., growth, transitions), results are summarized using the mg.tdcm.summary function.

Note

Currently, this function only accepts a single Q-matrix.

References

Madison, M. J., & Bradshaw, L. (2018). Evaluating intervention effects in a diagnostic classification model framework. Journal of Educational Measurement, 55(1), 32-51.

Examples


## Example 4: G = 2, T = 2, A = 4
data(data.tdcm04, package = "TDCM")
data <- data.tdcm04$data
q.matrix <- data.tdcm04$q.matrix
groups <- data.tdcm04$groups

# Estimate full multigroup TDCM with invariance assumed.
mg.model <- TDCM::mg.tdcm(data, q.matrix, num.time.points = 2, groups = groups)

# summarize results
results <- TDCM::mg.tdcm.summary(mg.model, num.time.points = 2)

# plot results
TDCM::tdcm.plot(results)


[Package TDCM version 0.1.0 Index]