Error in t(Delta[[g]]) %*% A1[[g]] : non-conformable arguments
If you see this error in lavaan that is because the changed the MLM to MLR for Maximum Likelihood Robust estimator.
Change your model fit command to the following:
fit.cfamodel3<- cfa(cfamodel3, data=data, estimator =”MLR”, mimic= “Mplus”)
summary(fit.cfamodel3, fit.measures=TRUE, standardized=TRUE, rsq=TRUE)