 Moderation with multiple outcomes    Message/Author  Charles Stapleton posted on Thursday, April 09, 2015 - 9:57 am
I have an embarassing simple question. I have a simple moderation model with one predictor (X), one moderator (W), and one outcome (Y). I wish to expand the model to multiple outcomes. For example, A, B, and C. How do I do this correctly? Sample code below:

USEVARIABLES = X W Y XW;

DEFINE:
XW = X*W;

ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
BOOTSTRAP = 10000;

MODEL:
[Y] (b0);
Y ON X (b1);
Y ON W (b2);
Y ON XW (b3);

MODEL CONSTRAINT:
NEW(LOW_W MED_W HIGH_W SIMP_LO SIMP_MED SIMP_HI);

LOW_W = -1;
MED_W = 0;
HIGH_W = 1;

SIMP_LO = b1 + b3*LOW_W;
SIMP_MED = b1 + b3*MED_W;
SIMP_HI = b1 + b3*HIGH_W;

PLOT(LOMOD MEDMOD HIMOD);
LOOP(XVAL,1,5,0.1);
LOMOD = (b0 + b2*LOW_W) + (b1 + b3*LOW_W)*XVAL;
MEDMOD = (b0 + b2*MED_W) + (b1 + b3*MED_W)*XVAL;
HIMOD = (b0 + b2*HIGH_W) + (b1 + b3*HIGH_W)*XVAL;

PLOT:
TYPE = plot2;

OUTPUT:
STAND CINT(bcbootstrap);  Bengt O. Muthen posted on Thursday, April 09, 2015 - 11:48 am
You just repeat what you have done, replacing Y with A, B, or C. Either all jointly, or one at a time (same results).  Charles Stapleton posted on Thursday, April 09, 2015 - 11:58 am
Thanks!

Would/should I need a WITH statement between the outcomes? And would this depend on how correlated the outcomes are?  Bengt O. Muthen posted on Thursday, April 09, 2015 - 12:59 pm
That's the default.    Topics | Tree View | Search | Help/Instructions | Program Credits Administration