Learn R Programming

CDM (version 7.4-19)

ideal.response.pattern: Ideal Response Pattern

Description

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\).

Usage

ideal.response.pattern(q.matrix, skillspace=NULL)

Arguments

q.matrix

The Q-matrix

skillspace

An optional skill space matrix. If it is not provided, then all skill classes are used for creating an ideal response pattern.

Value

A list with following entries

idealresp

A matrix with ideal response patterns

skillspace

Used skill space

Examples

Run this code
# NOT RUN {
#############################################################################
# EXAMPLE 1: Ideal response pattern sim.qmatrix
#############################################################################

data(sim.qmatrix, package="CDM")

q.matrix <- sim.qmatrix
CDM::ideal.response.pattern( q.matrix )

# 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)
# }

Run the code above in your browser using DataLab