On 02/18/2015 05:32 PM, Pahud wrote:
> no, I don't get a warning msg or errmsg. No msg at all.
> If I model my manifest variable direct into the model, without modelling
> it as a latent variable first, it just doesn't work... no msg or
> anything like it.
>
> Let me put it different: Why do we model a single manifest variable into
> a latent variable first, before we're able to cor. it with a latent
> variable?
Ah, ok. I now understand what you mean. And you are right: this is
currently a restriction of lavaan: if you have exogenous observed
variables, they can only enter the model in the right-hand side of a
regression formula. Not in a covariance formula.
The workaround, as you have found yourself, is to 'upgrade' this
covariate to a latent variable (with a single indicator).
I will see if I can make this happen automatically in a next update. At
the very least, a warning would have been appropriate.
Yves.