I am measuring the effect of belonging to an experimental condition (0,1) on a dichotomous dv, mediated by a continous variable. The path between X and M can be theoretically justified as being moderated by another contiouns variable. I tried:
model <- 'cso ~ a*cond + w*cn + aw*cond:cn
pet_sign ~ c*cond + b*cso
ab0 := a*b + 0*w
ab1 := ab0 + 1*w'
(cso= M; cond = X; cn = W; pet_sign = Y)
when I run the model i get the error message:
"some variables have no values (only missings) or no variance", I assume this is the case because my X is dichotomous and 0 and 1.
Please, does anybody know how to approach this the best? And whether the syntax is correct at all?