I am using mirt to run the following r code:
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