--
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 visit https://groups.google.com/d/msgid/lavaan/CACXLW89cv_bcv%3D1ktT5Capg1BE1%2BMUpbhUrfLTPopcPgUFx%2BHg%40mail.gmail.com.
Hi Michael,1) "fitted(fit)$cov" will indeed give you the covariance matrix implied by the model.2) Just use "cov(Data)" (from base R). "vcov" as in "lavInspect(fit, "vcov")" will give you a matrix that contains the cov(ariance) matrix of the estimated model parameters. This information in "vcov" could be useful for standard errors of certain parameters, for instance.
This link (https://rdrr.io/cran/lavaan/man/lavInspect.html) contains the answer to your questions and more. For instance, "lavInspect(fit, "cov.ov")" would give you the same as "fitted(fit)$cov".3) The theta matrix contains the (cov)ariances of the residuals (measurement errors) for the observed variables. I may have misinterpreted your question, but if you want the difference between the observed (cov)ariance matrix and the model implied (cov)variance matrix, then "lavResiduals(fit)" should do it.Check this link as well: https://rdrr.io/cran/lavaan/man/lavResiduals.htmlBest,Felipe.
--
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 visit https://groups.google.com/d/msgid/lavaan/CAAngqr%2B%2B2mQ3W9rj2bCPwfFe-Gz0rY5ZqHmJJdfJqxfPmhbYFQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/lavaan/CACXLW8_Of0rpnjEP_o3kK-SbVcuKJVcaPEiKAG3jM%3DjQ0g9avA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/lavaan/CAMtGSxkCDAaQiYfj%3D6zzdJfYr71HctSGgubQC-9KT8K4HpLN5A%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/lavaan/CACXLW8_Of0rpnjEP_o3kK-SbVcuKJVcaPEiKAG3jM%3DjQ0g9avA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/lavaan/CAAngqrKNzXgR-bBS8DfsnHQ-9e%2BXO99N77AVskmMuPSLDgK7qQ%40mail.gmail.com.
Hey Felipe,that was awesome! I will check it out:) BTW, I wonder what are the reasons, I am not a statistician, that this re-scaling (N-1/N) seems to be SO important?? and the other similar questions why seems to be a big deal if you divided by N-1 versus N??
My last question I can not understand clearly, why a just identified model has a perfect fit? I just do not get the link between the two :(
--
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 visit https://groups.google.com/d/msgid/lavaan/8c8f47d1-2f9d-4a15-8f69-67d23cf2fd94%40gmail.com.