Learn R Programming

Qval (version 0.1.7)

get.Mmatrix: Calculate \(\mathbf{M}\) matrix

Description

Calculate \(\mathbf{M}\) matrix for stauted CDMs (de la Torre, 2011).

Usage

get.Mmatrix(K = NULL, pattern = NULL)

Value

An object of class matrix.

Arguments

K

The number of attributes. Can be NULL if pattern is passed to the function and is not NULL.

pattern

The knowledge state matrix containing all possible attribute mastery pattern. Can be gained from @seealso attributepattern. Also can be NULL if K is passed to the function and is not NULL.

Author

Haijiang Qin <Haijiang133@outlook.com>

References

de la Torre, J. (2011). The Generalized DINA Model Framework. Psychometrika, 76(2), 179-199. DOI: 10.1007/s11336-011-9207-7.

Examples

Run this code

library(Qval)

example.Mmatrix <-  get.Mmatrix(K = 5)

Run the code above in your browser using DataLab