The code I've employed to specify the model is this:
model.1<-'
## Latent variable (formative)
x<~y1+y2+y3+y4
## Residual covariances
y1~~y2+y3
y2~~y3+z1
y3~~z1
## Define regressions
w~lambda1*x
w~lambda2*z1
w~lambda3*z2
w~lambda4*z3
## Define interactions
interac:=lambda1*lambda2+lambda1*lambda3+lambda1*lambda4'
Suggestions on how to fix it and define the interactions with the latent variable? Am I missing anything? Sorry if the answer is too obvious, I have no experience with lavaan at all.
Thanks in advance!!
As you can see, there is one latent variable, called x. The main problems of my code, I guess, are the interactions of this latent variable x with z1, z2, and z3 (i.e.,xz1, xz2, and x*z3). I have no idea about how to specify the right side of my model.
On 16 Apr 2016, at 24:16 , Jorge Fresneda <jorge.e....@gmail.com> wrote:
Hi!! I'm a new user of lavaan
The model I'm trying to fit is this one on the picture <stackmodel.png><stackmodel.png>
As you can see, there is one latent variable, called x. The main problems of my code, I guess, are the interactions of this latent variable x with z1, z2, and z3 (i.e.,xz1, xz2, and x*z3). I have no idea about how to specify the right side of my model.