mixing items with different format

80 views
Skip to first unread message

Asghar Minaei

unread,
Aug 18, 2019, 2:20:31 PM8/18/19
to mirt-package
Hello Dear Philip

I'm using mirt to analysis  a test which contains 10 dichotomous(0,1) and 5 polytomous items which scored as 0,1, and 2. I'm attempting to use a combination of  simple Rasch  and Rating Scale Models.
 I run the following codes:

items<-rep("Rasch", 15)
items[11:15]<-"rsm"
rasch.model<-"F= 1-15"
rasch.fit<-mirt(A_data[,3:17], model= rasch.model, itemtype = items, SE=TRUE)
rasch.para<-coef(rasch.fit, IRTpars=TRUE, simplify=TRUE, printSE=TRUE

and I get this error:
Error: Rating scale models require that items to have the
                                        same number of categories


 Any help from you would be appreciated! Thanks in advance

regards
Asghar

Phil Chalmers

unread,
Aug 19, 2019, 8:31:26 PM8/19/19
to Asghar Minaei, mirt-package
Hi Asghar,

This error seems a little aggressive from mirt() and should probably be patched. For now you can use the rsm.block vector input to specify which items should belong to which block. For now, just treat the real rating scale items as a unique block, and the other items as a separate block. I'll try to make a patch for this though in the next version since this does seem like a false cause for concern. Thanks.

Phil


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mirt-package/c1348047-33d9-437e-95cb-9e83a8f1f807%40googlegroups.com.

Phil Chalmers

unread,
Aug 19, 2019, 8:47:49 PM8/19/19
to Asghar Minaei, mirt-package
Patch is now available on the Github dev version. If you install that first your current code should work fine. HTH.
Phil

Reply all
Reply to author
Forward
0 new messages