get_design_matrix_cdm: Build the CDM design matrix for a set of attribute patterns

View source: R/sim-utils.R

get_design_matrix_cdmR Documentation

Build the CDM design matrix for a set of attribute patterns

Description

Constructs the design matrix X used in the cognitive diagnostic model probability formulation p = X\delta. The structure depends on the model type:

DINA

Intercept + single mastery indicator (all attributes mastered).

DINO

Intercept + single "at-least-one" indicator.

ACDM

Intercept + main effects of each attribute.

GDINA

Full saturated interaction matrix (all 2^K columns).

Usage

get_design_matrix_cdm(patterns, model = "GDINA")

Arguments

patterns

A binary matrix of attribute mastery patterns (L \times K).

model

One of "DINA", "DINO", "ACDM", "GDINA".

Value

A numeric design matrix X with L rows. Column count depends on the model.


ForceChoice documentation built on Sept. 13, 2026, 1:06 a.m.