Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

designmatrix

Generate design matrix


Description

This function generates the design matrix for an item

Usage

designmatrix(Kj = NULL, model = "GDINA", Qj = NULL)

Arguments

Kj

Required except for the MS-DINA model; The number of attributes required for item j

model

the model associated with the design matrix; It can be "GDINA","DINA","DINO", "ACDM" or "MSDINA". The default is "GDINA". Note that models "LLM" and "RRUM" have the same design matrix as the ACDM.

Qj

the Q-matrix for item j; This is required for "MSDINA" model; The number of rows is equal to the number of strategies and the number of columns is equal to the number of attributes.

Value

a design matrix (Mj). See de la Torre (2011) for details.

References

de la Torre, J. (2011). The generalized DINA model framework. Psychometrika, 76, 179-199.

Examples

## Not run: 
designmatrix(Kj = 2, model = "GDINA")
designmatrix(Kj = 3, model = "DINA")
msQj <- matrix(c(1,0,0,1,
                 1,1,0,0),nrow=2,byrow=TRUE)
designmatrix(model = "MSDINA",Qj = msQj)

## End(Not run)

GDINA

The Generalized DINA Model Framework

v2.8.0
GPL-3
Authors
Wenchao Ma [aut, cre, cph], Jimmy de la Torre [aut, cph], Miguel Sorrel [ctb], Zhehan Jiang [ctb]
Initial release
2020-05-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.