Hello. I'm a beginner of SEM.
The definition of the independence model that I learned from some introductory-level textbooks is a model that assumes that there is no covariance between variables (therefore it estimates only variances).
However, when a model is fitted with fixed.x = FALSE (i.e. model estimates variances and covariances) the independence model seems to estimate covariances, and those covariances are counted as free parameters.
Here is an example:
> library(lavaan)
> model <- 'Volume ~ Height + Girth'
> fit <- sem(model, data = trees, fixed.x=FALSE)
> lav <- lav_partable_independence(fit)
> data.frame(lav) |> dplyr::filter(free > 0L)
id lhs op rhs user block group free ustart exo
1 1 Volume ~~ Volume 1 1 1 1 261.486576 0
2 2 Height ~~ Height 1 1 1 2 39.290323 0
3 3 Girth ~~ Girth 1 1 1 3 9.530239 0
4 4 Height ~~ Girth 1 1 1 4 NA 0
Height ~~ Girth is a covariance and it is counted as a free parameter.
Could you teach me a reason and/or related literatures about why lavaan uses such a independence model?
I would be grateful for any assistance.
The definition of the independence model that I learned from some introductory-level textbooks is a model that assumes that there is no covariance between variables (therefore it estimates only variances).
However, when a model is fitted with fixed.x = FALSE (i.e. model estimates variances and covariances) the independence model seems to estimate covariances, and those covariances are counted as free parameters.
--
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/f1842eaf-af9d-46fa-bfa5-fd6bf7ef3990n%40googlegroups.com.