CDP {NPCD} | R Documentation |
Probability of correct response for cognitive diagnostic models
Description
This function returns the model-predicted probability of correct response of one item for one person given the item parameters, Q vector, and alpha vector. Currently supported cognitive diagnostic models include the DINA model, DINO model, NIDA model, G-NIDA model, and R-RUM model. This function is called by the ItemFit
function in the package.
Usage
CDP(Q, par, alpha, model = c("DINA", "DINO", "NIDA", "GNIDA", "RRUM"))
Arguments
Q |
The Q-vector of the item. Columns represent attributes. 1=attribute required by the item, 0=attribute not required by the item. |
par |
A list of parameters.
DINA & DINO — |
alpha |
A vector of examinee ability profile. 1=examinee masters the attribute, 0=examinee does not master the attribute. |
model |
Currently supports five models: |
Value
P |
The probability of correct response for the item by the person. |
Examples
# Generate item and examinee profiles
Q <- c(1, 0, 0)
alpha <- c(1, 0, 0)
slip <- 0.2
guess <- 0.1
my.par <- list(slip=slip, guess=guess)
CDP(Q, my.par, alpha, model="DINA")