mirt - Error in UseMethod("itemfit") : no applicable method for 'itemfit'...

I am using mirt to run the following r code:

r

modelgpcm <- mirt(data = dat,
model = 1,
itemtype = "gpcm")
summary(modelgpcm) #no issues
itemfit(modelgpcm) #results in the following error message in the console

Error in UseMethod("itemfit") :
no applicable method for 'itemfit' applied to an object of class "c('SingleGroupClass', 'AllModelClass')"

The r user documentation indicates that it should process an of class 'SingleGroupClass' which the model is without any issues.

This code works perfectly fine when I run it from my home RStudio. Unfortunately, I need to be able to run it from the RStudio provided in my work environment.

I'm using the following libraries - readxl, mirt

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.