>Logical. If TRUE, compute a baseline model (currently always the independence model, assuming all variables are uncorrelated) and store the results in the baseline slot.
This option, baseline, is TRUE by default. I assume that "all variables" does mean all observed variables, both exogenous or endogenous variables, as in some other SEM programs.
However, for a path model, it seems that the baseline model is not really the independence model.
sem("x3 ~ x1 + x2\nx4 ~ x3", HolzingerSwineford1939, fixed.x = TRUE) -> tmp1
sem("x3 ~ x1 + x2\nx4 ~ x3", HolzingerSwineford1939, fixed.x = FALSE) -> tmp2
> lavInspect(tmp1, "baseline.partable")
id lhs op rhs block user free ustart exo label group lower upper start est se
1 1 x3 ~~ x3 1 1 1 1.275 0 1 0.000 Inf 1.275 1.275 NA
2 2 x4 ~~ x4 1 1 2 1.351 0 1 0.000 Inf 1.351 1.351 NA
3 3 x1 ~~ x1 1 1 0 1.358 1 1 1.358 1.358 1.358 1.358 0
4 4 x2 ~~ x2 1 1 0 1.382 1 1 1.382 1.382 1.382 1.382 0
5 5 x1 ~~ x2 1 1 0 0.407 1 1 0.407 0.407 0.407 0.407 0
> lavInspect(tmp2, "baseline.partable")
id lhs op rhs block user free ustart exo label group lower upper start est se
1 1 x3 ~~ x3 1 1 1 1.275 0 1 0 Inf 1.275 1.275 NA
2 2 x4 ~~ x4 1 1 2 1.351 0 1 0 Inf 1.351 1.351 NA
3 3 x1 ~~ x1 1 1 3 1.358 0 1 0 Inf 1.358 1.358 NA
4 4 x2 ~~ x2 1 1 4 1.382 0 1 0 Inf 1.382 1.382 NA
5 5 x1 ~~ x2 1 1 5 NA 0 1 -Inf Inf 0.000 0.407 NA
>
The covariance of x1 and x2 is not fixed to zero. Is it the intended behavior of lavaan() when creating the independence model? Did I misunderstand how the independence model is constructed?
-- Shu Fai
According to the help page of lavInspect():>baseline:
I assume that "all variables" does mean all observed variables, both exogenous or endogenous variables
Ah ... yes. My bad. Sorry for the mistake.
id lhs op rhs block user free ustart exo label group lower upper start est se
5 5 x1 ~~ x2 1 1 5 NA 0 1 -Inf Inf 0.000 0.407 NA