Error Message in itemfit

31 views
Skip to first unread message

eliandr...@gmail.com

unread,
Mar 16, 2017, 10:11:46 AM3/16/17
to mirt-package
I am trying to run item fit statistics on a graded response model and am getting an error message that I don't know what to do about.  This is my model statement:

grmmod <- mirt(allclass, mirtss, itemtype = 'graded', method = "QMCEM", IRTpars = TRUE)

This is what I am using for the item fit:

moditemfit <- itemfit(grmmod, c('X2', 'G2'), method = 'MAP', Theta = ss_fscores, impute = 2, QMC = TRUE, Zh = F)

This is the error message I am getting:

Error in data.frame(value, row.names = rn, check.names = FALSE, check.rows = FALSE) : 
  row names supplied are of the wrong length

Any idea why this might happen?  What could I do to resolve this error?

Phil Chalmers

unread,
Mar 16, 2017, 10:15:05 AM3/16/17
to eliandr...@gmail.com, mirt-package
There's a lot going on here that seems incorrect. First, I'd recommend updating mirt to the lastest version as yours looks out of date.

On Thu, Mar 16, 2017 at 10:11 AM, <eliandr...@gmail.com> wrote:
I am trying to run item fit statistics on a graded response model and am getting an error message that I don't know what to do about.  This is my model statement:

grmmod <- mirt(allclass, mirtss, itemtype = 'graded', method = "QMCEM", IRTpars = TRUE)

IRTpars is not a valid argument to mirt().
 

This is what I am using for the item fit:

moditemfit <- itemfit(grmmod, c('X2', 'G2'), method = 'MAP', Theta = ss_fscores, impute = 2, QMC = TRUE, Zh = F)

If you are providing your own fscores, impute is not supported, nor is method. QMC is not a valid input for either of the requested fit statistics. Zh is also no longer a valid input.
 

This is the error message I am getting:

Error in data.frame(value, row.names = rn, check.names = FALSE, check.rows = FALSE) : 
  row names supplied are of the wrong length

Any idea why this might happen?  What could I do to resolve this error?

--
You received this message because you are subscribed to the Google Groups "mirt-package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages