Another belated reply.
The use of the 'colon' operator is dangerous. It is one of those syntax
'features' that I regret. It was only intended for interaction terms
involving 1) two, 2) exogenous, 3) observed variables. It is much safer
to define the product terms in the data.frame beforehand, and avoid the
use of the colon operator altogether.
However, lavaan dev 0.6-12 will now check the status (dependent or
independent) of both variables in the interaction term, and if either
one (or both) are dependent, the interaction term is no longer treated
as exogenous (ie., it will not appear in the output of lavNames(fit,
"ov.x"))
As a result, it shouldn't be a problem to add the residual covariance
between the mediator (M) and the interaction term (M:W), even if fixed.x
= TRUE.
This term will not be added automatically, as M:W does not appear in
either lavNames(,"ov.x") or lavNames(,"ov.y").
As for the second question ("Is there an option that can force lavaan to
set all the covariances between the exogenous variables free, even if we
manually set some covariances to free?"), the answer is: "no".
If variables are correctly identified as being exogenous, there is no
need. Once you intervene manually, the user is responsible for adding
all the needed covariances. This may be error-prone, but the 'automagic'
completion of model syntax can only go so far.
Yves.
> /Journal of Criminal Psychology/, /5/(2), 99–123.
>
https://doi.org/10.1108/JCP-02-2015-0010
> --
> 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
> <mailto:
lavaan+un...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/lavaan/3b0273d9-0a35-4fcc-8742-6723cdd35e1an%40googlegroups.com
> <
https://groups.google.com/d/msgid/lavaan/3b0273d9-0a35-4fcc-8742-6723cdd35e1an%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Yves Rosseel
Department of Data Analysis, Ghent University