Dear all,
Is it possible to compare two models that are based on the same dataset, but do not both make use of all variables?
I’m trying to compare the following two cfa models:
mod1 <- 'motion =~ t6 + t9
+ t11 +t12
color =~ t5 + t10 + t16'
fit1 <- cfa(mod1,
data=fa_subtests_data,ordered=c("t5","t6","t9","t10","t11","t12","t16")
)
mod2 <- 'grouping =~ t2 + t3 + t8 + t9 + t11 + t12
segmentation =~ t5 + t6 + t7 + t10 + t16
shape =~ t1 + t4+ t14'
fit2 <- cfa(mod2, data=fa_subtests_data,ordered=c("t1","t2",
"t3",
"t4","t5","t6","t7","t8","t9","t10","t11","t12","t14","t16")
)
So model 1 does only include a subset of the variables that are in model 2. anova(fit1,fit2) gives me:
Error in t(Delta1[[g]]) %*% WLS.V[[g]] : non-conformable arguments
Kind regards,
Kathleen
> AIC(fit1) Error in ll(object) : lavaan ERROR: logLik only available if estimator is ML
Is there another way to compare the models?Regards,KathleenThanks for looking into that. I want that the parameter x9 doesn't add anything in the smaller model. i ultimately want to know whether adding x9 is favourable or not necessary.
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at http://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.