This is due to the LISREL representation that is used by lavaan. In
LISREL, there is no such a thing as a covariance between an observed and
a latent variable. The only way out (for now) is to create a
single-indicator latent variable, as Mikko pointed out. One day, lavaan
may do this automatically (as it is already doing if you are using a
regression instead).
Amos is using the RAM representation, where these covariances are just
part of the 'symmetric' matrix.
Yves.
On 11/29/2017 03:13 PM, Alaa Al Dahdouh wrote:
> Thank you Edward, but a simple covariance between the two variables does
> not work. That was my first attempt and it generated the following error:
>
> Error in lav_model(lavpartable = lavpartable, lavoptions = lavoptions, :
> lavaan ERROR: parameter is not defined: Team ~~ y6
>
>
> It seems that Lavaan does not support covariance between observed and
> latent variables. The workaround solution provided Mikko Rönkkö has just
> confirmed this assumption. He suggested to create a "dummy" latent
> variable right in the middle between the observed variable "y6" and its
> latent construct "Team". Since the "dummy" variable is latent and the
> "Team" is also latent, Lavaan will allow them to connect.
>
> Thank you anyway.
>
>
> On Wednesday, November 29, 2017 at 1:55:49 PM UTC+2, Edward Rigdon wrote:
>
> Make the covariance connection between the two variables
> Team ~~ y6
> Since both are dependent, this is covariance between their residuals.
>
> On Nov 29, 2017 6:36 AM, "Alaa Al Dahdouh" <
alaaal...@gmail.com
> <javascript:>> wrote:
>
> <
https://lh3.googleusercontent.com/-BxzZzdPd9og/Wh6bqDXGOwI/AAAAAAAAKck/F2SAQSKpCv0BX8uiJ5tBDATFXD8Jb7nQgCLcBGAs/s1600/Capture.PNG>
>
> Hi,
>
> I am new to Lavaan but I have previous experience with SPSS
> AMOS. I have a model which works well in AMOS and I tried to
> re-apply it in Lavaan but obviously I failed. Here, I am going
> to include a short version of the model as an example of the issue.
>
> In the model, we have 3 latent variables (Culture, Reward,
> Team), each latent variable was measured by 3 observed
> variables. The regression among the latent variables are as follow:
> *Culture -> Reward -> Team.*
>
> Since the latent variable Team was predicted by Reward, then it
> should be a residual (error) which are remained unexplained by
> the predictor variable. In our model, the modification indices
> suggested that this error (attached to Team variable) correlate
> to one of the errors of Reward's observed variables. Such
> correlation has some support in our theoretical hypotheses and
> therefore we allowed it to happen. See the figure:
>
>
> Now, the question is: how can we write this correlation in the
> model syntax?
> Please note, I tried to use "sem" function which automatically
> creates error variables of the observed variables. When you
> write the covariance between latent variable's error and the
> observed variable's error as simply as you write the covariance
> between two observed variables the program generates error.
>
> I also didn't find useful example on how to use "lavaan"
> function to define the errors explicitly. I know that "lavaan"
> function allows a full control and does not automatically create
> residual variables (unless you explicitly tell it so) but how to
> write a model with error latent variables is not clear to me.
>
> --
> 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 <javascript:>.
> <javascript:>.
> <
https://groups.google.com/group/lavaan>.
> <
https://groups.google.com/d/optout>.
>
> --
> 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>.
> <mailto:
lav...@googlegroups.com>.