M2 after bfactor

66 views
Skip to first unread message

Makrem Ben Youssef

unread,
Apr 24, 2015, 8:22:51 AM4/24/15
to mirt-p...@googlegroups.com


Hi phil
 
i'm using mirt package and i'm triying to run a bifactor model with two specific factors and one general factor, (number of items =27) the syntax I used is as follows:
mod<- bfactor(datanow, c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2))
 
but when I try to get fit statistiics with M2 funnction , i get the error message"
error in solve.default(t(deltac) %*% Xi2 %*% deltac) : 
  system is computationally singular: reciprocal condition number = 7.80612e-18
 
is it possible to use M2 after bfactor just like mirt? or is there something wrong with my syntax?
Please , I have anaother question about model parameters: i'm using a two parameter model and i'm interested in getting the discrimnation and dfifficulties of items, which function can I use to have this other than the summary function which directly displays  the factor scores.
Thanks a lot for your help.
Makrem

Phil Chalmers

unread,
Apr 24, 2015, 10:32:02 AM4/24/15
to Makrem Ben Youssef, mirt-package
This is a computational error, implying that a matrix could not be inverted because it is not positive definite. I'm not sure why this occurred, but it always is possible in numerical computations. Could you try installing the dev version and rerunning your model to see if this still occurs. Also, after installing the dev, try passing the option QMC = TRUE to see if that fixes the issue. Cheers.

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.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages