ideal.response.pattern.Rd
This function computes the ideal response pattern which is the latent item response \(\eta_{lj}=\prod_{k=1}^K \alpha_{lk}\) for a person with skill profile \(l\) at item \(j\).
ideal.response.pattern(q.matrix, skillspace=NULL, rule="DINA")
The Q-matrix
An optional skill space matrix. If it is not provided, then all skill classes are used for creating an ideal response pattern.
Chosen condensation rule for the CDM. Can be "DINA"
or "DINO"
.
A list with following entries
A matrix with ideal response patterns
Used skill space
#############################################################################
# EXAMPLE 1: Ideal response pattern sim.qmatrix
#############################################################################
data(sim.qmatrix, package="CDM")
q.matrix <- sim.qmatrix
#- ideal response pattern for DINA model
CDM::ideal.response.pattern(q.matrix)
#- ideal response pattern for DINO model
CDM::ideal.response.pattern( q.matrix, rule="DINO" )
# compute ideal responses for a reduced skill space
skillspace <- matrix( c( 0,1,0,
1,1,0 ), 2,3, byrow=TRUE )
CDM::ideal.response.pattern( q.matrix, skillspace=skillspace)