2-1-1 path analysis with binary media... PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
 Ahyoung Song posted on Tuesday, April 15, 2014 - 11:54 pm

I am analyzing 2-1-1 path model with binary mediator (intent2) and outcome (condom) by using MLR. In the results, odds ratios were only given for intent2->condom and no odds ratios were given for independent variables -> intent2. May I ask how I obtain the odds ratios of independent variables? and in this case, is it ok to use MLR instead of other estimators?
I copied my syntax below:
NAMES ARE caseid weight cdattit
hivsus norm intent primary
condom intent2;
USEVARIABLES ARE caseid weight cdattit
hivsus norm intent primary
condom intent2 inter;
CATEGORICAL IS condom intent2;
BETWEEN IS cdattit hivsus norm;
WITHIN IS primary inter;
CLUSTER IS caseid;
WEIGHT IS weight;
DEFINE:inter = primary*intent2;
condom ON intent2(b)
cdattit hivsus norm intent2 condom;
intent2 ON cdattit(a);
intent2 ON norm(c);
intent2 ON hivsus(d);
condom ON cdattit;
condom ON norm;
condom ON hivsus;
NEW(indb indb1 indb2);

Many thanks in advance!
 Bengt O. Muthen posted on Wednesday, April 16, 2014 - 1:38 pm
You can create odds ratios by Model constraint, e.g.

or = exp(b);

MLR should be fine here.
 Ahyoung Song posted on Wednesday, April 16, 2014 - 9:02 pm
Thank you so much!
 Nicki Keating posted on Tuesday, August 04, 2015 - 2:34 am
I am interested in a 2 (cdep) -2 (ccoll)-1 (fiver) path, with moderation between the level 2 variables by another variable (cbot). Covariates age, male and ethnic are all categorical at L1, weight (continuous) at level 2. My drinking outcome is binary, but my level 2 mediator and predictor are both continuous. My code is:
categorical = fiver;
usevariables are ngh fiver male ses ethnic ccoll cbot cdep wgtbot INT2;
missing are all (-9999);
cluster is ngh;
between is ccoll cbot cdep wgtbot INT2; !centered except wgtbot
within = male ses ethnic ;
define:CENTER wgtbot(GRANDMEAN) ;
define: int2 =cbot*cdep;
TYPE = twolevel;
fiver on male ses ethnic ;
fiver ON ccoll(b);
fiver on cdep (cp1);

ccoll on cdep (a1);
ccoll on cbot ;
ccoll on wgtbot;
ccoll ON INT2 (bb);

new (dp_col_int wmodval dep_coll depdir);
dp_col_int = (a1+bb*wmodval)*b;
wmodval = 0;
dep_coll = a1*b;
depDIR = cp1;

Is this the correct estimator? I have assumed I use the raw data, and perhaps it is this assumption I have incorrect.
Thank you so much
 Bengt O. Muthen posted on Tuesday, August 04, 2015 - 6:43 pm
Looks right. Raw data are needed.
 Nicki Keating posted on Thursday, September 03, 2015 - 2:38 pm
Hello again,

Thank you so much for your prompt response.

I am getting very different results between MLR and WLSMV. I have read through many of the discussion pieces on estimators and read the choice of estimators pdf.

My binary outcome has a 90/10 split (only 10% have the outcome) and my mediators and independent variables (both at level 2) are very non-normal. Is it likely that it is these characteristics which are producing different results? Some discussion pages say WSLMV is more robust to non-normality, other pages say less. My sample size is 4267.

I hope you can help!
Many thanks
 Linda K. Muthen posted on Thursday, September 03, 2015 - 3:41 pm
MLR is logistic regression as the default. WLSMV is probit regression. The comparison should be of the patterns of significance.
 Nicki Keating posted on Thursday, September 03, 2015 - 4:01 pm
Thank you so much for your incredibly prompt response. It is wonderful, especially being in a small country with not many MPlus users.

Sorry, I meant to say that my comparisons were relating to the patterns of significance. My results with my non-normal independent variables are all non-significant in WLSMV and all significant in ML and MLR using integration. I am unsure which to trust. I do have one very normally distributed independent variable which produces identical results using all 3 estimators, but my non-normal indicators produce very contrasting findings.

Any further advice would be greatly appreciated. I am so appreciative.

 Linda K. Muthen posted on Thursday, September 03, 2015 - 5:03 pm
Please send both outputs and your license number to support@statmodel.com.
 Nicki Keating posted on Wednesday, December 16, 2015 - 12:00 pm
Festive greetings,

I have been reading everyone's posts who are interested in 2-1-1 models and I see many differences across them in their approach.

If x is the contextual predictor at L2 and m is the mediator at L1 and y is the outcome, I see the following codes:

y ON m (b) ;
m on x (a);
y ON x(cp);

Or I see
y ON m;
y ON m (b);
m on x (a);
y ON x (cp);

Or the Preacher Appendix for MLM is essentially the same as the first:
y ON m (b) ;
m ON x (a)
y on m (b) constrained to be equal to b;
y ON x(cp);

Help! Thank you and wishing you a very merry Xmas.

 Bengt O. Muthen posted on Wednesday, December 16, 2015 - 7:03 pm
I don't care for the first one because why would you not have y ON m on Between? If you leave it out you get the the y ON x slope distorted.

I like the second one because here it is clear that the effect of the between-level x is expressed in a good mediation model on Between. But I don't know if that's what the originators of the 2-1-1 language had in mind.

Number 3 is ok if one can make that equality assumption.
 empisoz posted on Sunday, October 20, 2019 - 4:03 am

I'd like to estimate a "2-1-1" twolevel model where the mediator has been measured at the within-level and is dichtomous, while the dependent variable is continuous.

Given that the exposure/independent variable is situated at the between-level and hence the between-variance of the categorical mediator is taken into account, would it be correct to consider the indirect between-level effect as a product of linear regression slopes (exposure to mediator, mediator to dependent variable)?

Thank you very much fpr your reply.
 Bengt O. Muthen posted on Sunday, October 20, 2019 - 5:44 pm
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message