Learn R Programming

cdmTools (version 1.0.5)

RDINA2GDINA: 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)

Value

RDINA2GDINA returns an object of class GDINA. See the GDINA package for more information.

Arguments

fit

An object of class RDINA.

Author

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

Run this code
# \donttest{
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
# }

Run the code above in your browser using DataLab