Vas
unread,Feb 27, 2025, 9:58:05 AMFeb 27Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mirt-package
Hi
please help me on the below
bifactor_model <- '
G = 1-11 # General factor loads on all items
f1 = 1-4 # Specific factor for items 1-4
f2 = 5-7 # Specific factor for items 5-8
f3 = 8-11 # Specific factor for items 9-12
'
I have found this model to have the best fit to the data. As a next step i want to test the dif for this model with gender as the factor/grouping variable.
> str(data)
spc_tbl_ [400 × 12] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
$ item1 : num [1:400] 6 5 5 ...
$ item2 : num [1:400] 6 5 6 ...
$ item3 : num [1:400] 6 4 5 ...
$ item4 : num [1:400] 6 5 5 ...
$ item5 : num [1:400] 6 5 5 ...
$ item6 : num [1:400] 6 4 5 ...
$ item7 : num [1:400] 6 4 5 ...
$ item8: num [1:400] 6 5 5 ...
$ item9: num [1:400] 6 5 5 ...
$ item10: num [1:400] 6 4 5 ...
$ item11 : num [1:400] 6 5 5 ...
$ gender : chr [1:400] "1" "2" "2" "1" ...
MGmodel <- multipleGroup(data, model = bifactor, group = "gender",
itemtype = 'graded', method = 'QMCEM', SE = TRUE)
Error: group input provided is not valid
OR
MGmodel <- multipleGroup(data, model = bifactor_model, group = "gender")
Error: group input provided is not valid
Can you help me with this? I understand that there were earlier questions on this error, but this error persists even after I convert gender as a chr.
Thanks in advance for your thanks and consideration
vas