R and stat noob here. I have been playing with Jeromy Anglim's code in his blog post here. However, my items$variable
has some missing values. I tried using the distractor.analysis
function from the CTT
package with
distractor.analysis(cases[,items$variable], items$correct)
I get the error
Error : missing values and NaN ’s not allowed if ’na .rm ’ is FALSE
Is there a work-around for using distractor.analysis
for data with missing responses or is there a better way to perform distractor analysis in R?