This package provides a framework for conducting a variety of cognitively diagnostic analyses for dichotomous and polytomous responses.
For more details, see here
For an example of how to use the package, see here
Visit here for an online reference
Below is an illustration showing some analyses that you could do using the package. You can copy the code, paste and run it in R console. For a more comprehensive example, see this tutorial.
library(GDINA) <- sim10GDINA$simdat dat <- matrix(c(1,0,0, Q 0,1,0, 0,0,1, 1,0,1, 0,1,1, 1,1,0, 0,0,1, 1,0,0, 1,1,1, 1,0,1),byrow = T,ncol = 3)
<- GDINA(dat = dat, Q = Q, model = "GDINA")est
<- Qval(est) Qv Qv
To avoid using fixed cutoffs and also take uncertainty in item parameter estimation into account, you may consider the stepwise method:
<- Qval(est,method = "Wald") Qv2 Qv2
To further examine the q-vectors that are suggested to be modified, you can draw mesa plots:
plot(Qv, item = 9)
<- modelcomp(est) mc mc
# test level absolute fit <- modelfit(est) mft mft# item level absolute fit <- itemfit(est) ift iftsummary(ift) plot(ift)
If you would like to contribute an example to this website, please send me your .Rmd file.