Diagnostic classification models (DCMs) constitute a subset of restricted latent class models in which latent classes are constrained by an expert-specified Q matrix reflecting students’ mastery of the psychological attributes associated with items. In instances where uncertainty exists in the attribute elements of items specified by the Q matrix, the accurate estimation of the Q matrix is imperative for ensuring accurate person and item estimates. This paper delves into the use of the open-source NIMBLE (Numerical Inference for Hierarchical Models Using Bayesian and Likelihood Estimation) package in R software to infer the Q matrix while incorporating model constraints. Snippets of NIMBLE code illustrate the Q matrix estimation in DCMs, followed by parameter-recovery simulation studies and empirical data analyses. The research findings show a high degree of parameter recovery in simulation studies and provide insightful analyses of empirical data. This paper demonstrates that researchers can now effectively engage with DCMs using NIMBLE, particularly in scenarios where the Q matrix is uncertain. This eliminates the need to laboriously develop and code intricate parameter estimation algorithms, thus enabling researchers to prioritize model development and statistical analysis with confidence.
No takes yet. Share an insight, caveat, or question.
Chen‐Wei Liu (2024) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: