(a) Lavaan gives both "Variances:" and "Scales y*:" for the endogenous variables. In my case, the values are 1 in both cases for both Y1 and Y2. Is that possible?
(b) I get the following error. Can you point to the literature that explains this errorWarning message:In muthen1984(Data = X[[g]], ov.names = ov.names[[g]], ov.types = ov.types, :lavaan WARNING: trouble inverting W matrix; used generalized inverse
(c) I modified my model to make it non-recursive by adding Y1 as an explanatory variable.model2 <- 'Y1 ~ x1+x2Y2 ~ x1 + x2 + x3 + Y1Y1 ~~ Y2'
Thanks so much Terrance.
(1) I indicated fixed.x = FALSE, however, I got the following error.
> fit <- sem(model1, data=analysisdata, debug = FALSE, fixed.x = FALSE)
Error in lav_options_set(opt) :
lavaan ERROR: fixed.x=FALSE is not supported for estimator DWLS
I resolved the error by changing the estimator to ULSMV.
> fit <- sem(model1, data=analysisdata, se = "robust.sem", debug = FALSE, fixed.x =FALSE, estimator = "ULSMV")
Warning message:
In muthen1984(Data = X[[g]], ov.names = ov.names[[g]], ov.types = ov.types, :
lavaan WARNING: trouble inverting W matrix; used generalized inverse
I have some additional questions – Why does the fixed.x = FALSE not work with DWLS. IS it a conceptual problem, or is it that the feature has not been incorporated in the current version of lavaan.
Second, when I am using ULS estimator, I am basically using a unwieghted LS estimator (as the name suggests). Why do I still get the warning that the W matrix cannot be inverted.
Finally, the change to fixed.x = FALSE, does not seem to affect the output of lavaan. Specifically, I continue to get variances as well as scale of 1. It also does not matter whether I explicitly indicate parameterization = "delta" or parameterization = "theta". The results are exactly the same. I wonder what I am doing wrong here...
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/kyHirMT8_gU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
(1) I indicated fixed.x = FALSE, however, I got the following error.
> fit <- sem(model1, data=analysisdata, debug = FALSE, fixed.x = FALSE)
Error in lav_options_set(opt) :
lavaan ERROR: fixed.x=FALSE is not supported for estimator DWLS