irt.responses(theta,items, breaks = 11,show.missing=FALSE, show.legend=TRUE, legend.location="topleft", colors=NULL,...)
score.irt
).score.multiple.choice
according to some scoring key and to then find the score.irt
based scores. Response frequencies for each alternative are then plotted against total score. An ideal item is one in which just one alternative (the correct one) has a monotonically increasing response probability.Because of the similar pattern of results for IRT based or simple sum based item scoring, the function can be run on scores calculated either by score.irt
or by score.multiple.choice
. In the latter case, the number of breaks should not exceed the number of possible score alternatives.
score.multiple.choice
, score.irt
data(iqitems)
iq.keys <- c(4,4,4, 6,6,3,4,4, 5,2,2,4, 3,2,6,7)
scores <- score.multiple.choice(iq.keys,iqitems,score=TRUE,short=FALSE)
#note that for speed we can just do this on simple item counts rather than IRT based scores.
op <- par(mfrow=c(2,2)) #set this to see the output for multiple items
irt.responses(scores$scores,iqitems[1:4],breaks=11)
op <- par(op)
Run the code above in your browser using DataLab