RDINA2GDINA {cdmTools} | R Documentation |
Translate RDINA object into GDINA object
Description
This function translates an object of class RDINA
to an object of class GDINA
, so that the estimated R-DINA object is compatible with most of the functions in the GDINA
package (Ma & de la Torre, 2020), including model fit, item fit, and Q-matrix validation.
Usage
RDINA2GDINA(fit)
Arguments
fit |
An object of class |
Value
RDINA2GDINA
returns an object of class GDINA
. See the GDINA
package for more information.
Author(s)
Pablo Nájera, Universidad Pontificia Comillas
References
Ma, W., & de la Torre, J. (2020). GDINA: An R package for cognitive diagnosis modeling. Journal of Statistical Software, 93(14). https://doi.org/10.18637/jss.v093.i14
Examples
library(GDINA)
dat <- sim30DINA$simdat
Q <- sim30DINA$simQ
fit1 <- RDINA(dat, Q)
fit2 <- RDINA2GDINA(fit1)
modelfit(fit2) # Model fit evaluation
itemfit(fit2) # Item fit evaluation
[Package cdmTools version 1.0.5 Index]