Hey,
I want to analyze measurement invariance in blavaan for following model:
workvalue_mod_4<-'
enhan =~ pow_res_1 + stat_5 + stat_6 + ach_adv_4
open =~ self_act_2 + stim_var_1 + hed_pl_3 + hed_com_2
trans =~ benev_car_8 + equi_acc_3 + equi_adv_8 + sust_env_3
cons =~ trad_soc_8 + trad_org_1 + conf_inter_5 + conf_form_7
'
Utilizing the wiggle parameter I am able to conduct approximate MI testing for variables contains two groups (e.g. dichotomous gender). However, when I try to analyze approximate MI between variables with >2 groups (e.g. educational levels) I receive following error:
> # wiggle .05
> bfit4_education1 <- bcfa(model = workvalue_mod_4, data = valuedata_stud4, group = "education_cat1",
+ group.equal = "loadings", wiggle = "loadings",
+
wiggle.sd = 0.05,
std.lv = TRUE)
Error in rowvec[samppar] <- which(grepl(stanvec[j], names(b.est)) & !(grepl("_c\\[", :
replacement has length zero
education_cat1 contains following groups and n's:
Ausbm HoR Abi BA MA Ausbo
621 1443 411 521 732 1417
I would appreciate every help I can get!
Thanks in advance!
Jannick