Q.generate {NPCDTools}R Documentation

Generation of Dichotomous Q-Matrix

Description

The function generates a complete Q-matrix based on a pre-specified probability of getting a one.

Usage

Q.generate(K, J, p, single.att = TRUE)

Arguments

K

The number of attributes

J

The number of items

p

The probability of getting a one in the Q-matrix

single.att

Whether all the single attribute patterns are included. If T, the completeness of the Q-matrix is guaranteed.

Value

The function returns a complete dichotomous Q-matrix

Examples

q = Q.generate(3,20,0.5,single.att = TRUE)
q1 = Q.generate(5,30,0.6,single.att = FALSE)


[Package NPCDTools version 1.0 Index]