--
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 view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/cfb84949-d957-43dd-a1e6-76de76ddbe7bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/3a019ebd-d9e6-4156-bae4-68103db7c434n%40googlegroups.com.
I want to make sure it uses the item responses as input
HS9 <- HolzingerSwineford1939[,c("x1","x2","x3","x4","x5",
"x6","x7","x8","x9")]
HSbinary <- as.data.frame( lapply(HS9, cut, 2, labels=FALSE) )
HS.model <- ' visual =~ x1 + x2 + x3 '
fit <- cfa(HS.model, data=HSbinary, ordered=names(HSbinary), estimator = "MML")
#MML
fit_extended_ML <- cfa(CFA_model_P_extended, data=P_items_extended, ordered=names(P_items_extended), estimator="MML")
fitMeasures_extended_ML <- fitMeasures(fit_extended_ML, fit.measures = c("cfi","tli","rmsea","srmr"))
fitMeasures_extended_ML
#PML
fit_extended_ML <- cfa(CFA_model_P_extended, data=P_items_extended, ordered=names(P_items_extended), estimator="PML")
fitMeasures_extended_ML <- fitMeasures(fit_extended_ML, fit.measures = c("cfi","tli","rmsea","srmr"))
fitMeasures_extended_ML
<0 x 0 matrix>
<0 x 0 matrix>
<0 x 0 matrix>
<0 x 0 matrix>
<0 x 0 matrix>
Warning messages:
1: In lav_model_estimate(lavmodel = lavmodel, lavpartable = lavpartable, :
lavaan WARNING: the optimizer warns that a solution has NOT been found!
2: In lav_model_lik_mml(lavmodel = lavmodel, THETA = THETA, TH = TH, :
lavaan WARNING: --- VETAx not positive definite
3: In lav_model_gradient_mml(lavmodel = lavmodel, GLIST = GLIST, THETA = THETA[[g]], :
lavaan WARNING: --- VETAx not positive definite
4: In lav_model_lik_mml(lavmodel = lavmodel, THETA = THETA, TH = TH, :
lavaan WARNING: --- VETAx not positive definite
5: In lav_model_lik_mml(lavmodel = lavmodel, THETA = THETA, TH = TH, :
lavaan WARNING: --- VETAx not positive definite
6: In lav_model_gradient_mml(lavmodel = lavmodel, GLIST = GLIST, THETA = THETA[[g]], :
lavaan WARNING: --- VETAx not positive definite
> fit_extended_ML
lavaan 0.6-6 did NOT end normally after 353 iterations
** WARNING ** Estimates below are most likely unreliable
Estimator MML
Optimization method NLMINB
Number of free parameters 260
Number of observations 1022
Error in lav_fit_measures(object = object, fit.measures = fit.measures, :
lavaan ERROR: fit measures not available if model did not converge