TITLE: 1 y plus 1 auxiliary z
y and z modeled together in a mediation model
z correlated with m
x is randomized tx/ctrl and uncorr with z
MONTECARLO:
NAMES ARE y m x z;
NOBSERVATIONS = 200;
NREPS = 500;
cutpoints = x(0);
missing = y;
repsave = all;
save = medrep*.dat;
MODEL POPULATION:
x@1;
y on m*.5 x*0;
y*.75;
m on x*.7;
m*.51;
z*1;
y with z*.5;
m with z*.5;
MODEL MISSING:
[y@-2];
y ON z@2;
MODEL:
y on m*.5 x*0;
y*.75;
m on x*.7;
m*.51;
z*1;
y with z*.5;
m with z*.5;
model indirect:
y ind x;
OUTPUT: TECH9;