I want to fit the Kenny and Judd (1984) model below:
y = alpha + gamma1 * psi1 + gamma2 * psi2 + gamma3 * psi1 * psi2 + epsilon
The variables psi1
and psi2
are latent variables that are not directly observable. Kenny and Judd (1984) considered the case when there are two observable indicators x1
and x2
of psi1
and two observable indicators x3
and x4
of psi2
. I want to create this model in R using lavaan
package.
Code:
model <- '
psi1 =~ x1 + x2
psi2 =~ x3 + x4
'
fit <- sem(model,data=data)
Can anyone help me complete this code to obtain the interaction above?