On 2/5/25 2:18 PM, Tatiana Marci wrote:
> I am estimating a latent change score model and encountered an issue
> when including sex as a covariate
If sex is binary (say 0/1), and you treat it as a random variable,
lavaan will try to estimate both the mean and the variance. But they are
linked, so one of them is redundant.
One possibility would be to impose a constraint like this:
sex ~ p*1 # mean
sex ~~ q*sex # variance
q == p * (p - 1) # constraint
Alternatively, if sex is exogenous in the model, you can use fixed.x =
TRUE (which is the default).
Yves.