Message/Author 

Jon Heron posted on Wednesday, March 28, 2012  1:37 am



Hi Bengt/Linda As you know, the model indirect command can only be used with WLSMV when working with a binary mediator. With ML, the mediator is treated as a dummy variable in it's role as an independent variable  does this mean that multiplying the paths to derive an indirect effect is invalid due to scaling and constrained residual variances? many thanks, Jon 


You can also use ESTIMATOR=BAYES; MODEL CONSTRAINT; and MEDIATOR =LATENT. The reason you can't use a product indirect effect with ML and a binary mediator is that the mediator is treated as a latent response variable when it is a dependent variable and an observed variable when it is an independent variable. 

Xu, Man posted on Thursday, March 29, 2012  7:19 am



I read in other threads that when logit link is used, its latent response variable that is the dependent and independent variable. Is it valid t to calculate the mediationo use the NEW in this context? 


A product indirect effect is not valid for maximum likelihood in Mplus for the logit link or the probit link when the mediator is binary. 

Xu, Man posted on Thursday, March 29, 2012  10:44 am



Actually the mediator in my case would be ordinal, not binary (sorry I did not realise the centre of discussion is binary being different from ordinal here). I remember under some specification it was possible to request INDIRECT with an ordinal meditor so I just assume it would be valid to calculate the mediation with probit link. 

Xu, Man posted on Thursday, March 29, 2012  10:49 am



Sorry, in my previous previous post, I meant for when probit link is used, it is the latent response variable of the mediator that was used as depedent and independent, hence I thought it would be OK to calculate the product of regression coefficients in this case. 


An ordinal mediator is treated as a continuous variable. If you can use MODEL INDIRECT, you can compute the indirect effect as a product. 

Jon Heron posted on Monday, April 02, 2012  8:00 am



Hi Linda slightly delayed thanks for your response to my initial question. Looks like I have a few more options to play with. 

Jon Heron posted on Tuesday, April 03, 2012  7:42 am



Bit of an update, with no obvious questions inserted. [1] Bayes estimation (uses probit link) and gives results similar to probit/ML when using "mediator=observed;", and results similar to probit/WLSMV when using "mediator=latent;". That's good. [2] I had hoped I might be able to rig up some postestimation parameters using modelconstraint so that I can rescale the logit/ML output (e.g. using David Kenny's equations: http://davidakenny.net/doc/dichmed.pdf) but I'm unable to refer to the variance of the dependent variables in the models, ditto the parameter SE's, using Mplus labelling. Conclusion. Logit/ML/rescaling has some benefits such as sticking with OR's which are more readily interpretable. Stata's binarymediation function will run this automatically and also permit the use of bootstrapping, but this only works for rather simple models. Looks like I'll be sticking with probit/WLSMV in Mplus and taking the hit in terms of losing my beloved odds ratios. 


I assume you are considering a binary mediator M and perhaps also a binary outcome Y. [1] That's right. [2] The research that the Kenny note refers to is largely outdated now. Instead you should take a look at Muthén, B. (2011). Applications of causally defined direct and indirect effects in mediation analysis using SEM in Mplus. which is on our web site together with Mplus scripts. This paper goes through new causal effect literature and shows how you should define indirect and direct effects with categorical and other variables. It implies that you can stay with MLlogit and odds as you desired. 

Jon Heron posted on Tuesday, April 03, 2012  10:38 am



Yes, just binary M for now. Thanks for the ref :) 

Xu, Man posted on Wednesday, April 04, 2012  4:29 am



Dear Linda, My case is a more complicated situation so it would not be possible to get mediation output from MODEL INDIRECT. I test the mediation effect from an ordinal mediator with the slope and intercept of a growth curve as outcome variables. Few things in the model that I think might be useful to present here are TYPE=RANDOM; INTEGRATION=MONTECARLO; link=probit; PARAMETERIZATION=THETA; I think in this case latent response variable is used instead of the observed ordinal variable, so I thought maybe I could apply the simple calculation for mediation effect with MODEL CONSTRAINT. Is this valid to do? Thank you! 

Xu, Man posted on Wednesday, April 04, 2012  5:07 am



Or maybe I can never calculate a valid mediation effect because estimator is mlr instead of weighted least square in this case? I have to specify TYPE=RANDOM in order to get the model run with TSCORE option. 


If you are using MLR and have an ordinal mediator that is listed on the CATEGORICAL list, you cannot create an indirect effect as a product. Instead you would need to create it according to the formulas in the following paper: Muthén, B. (2011). Applications of causally defined direct and indirect effects in mediation analysis using SEM in Mplus. 

Ewan Carr posted on Friday, June 22, 2012  3:07 pm



Further to the above: I have a twolevel model, with a continuous outcome, and a binary mediator (full specification below). I'm testing a 211 mediation pathway — a level2 variable is mediated by a level1 variable. Some questions: 1) Should I list the binary mediator on the CATEGORICAL list (My guess: yes)? 2) Should/can I test the betweenlevel indirect effect using MODEL CONSTRAINT? 3) Is MEDIATOR = LATENT the default in Mplus? Based on the above reference, it seems the best option here. I'm using Bayesian estimation for this model. Many thanks in advance! Ewan  %WITHIN% y ON m; %BETWEEN% m ON x (a); y ON m (b); y ON x; MODEL CONSTRAINT: NEW(indb); indb=a*b; 


Yes, Yes, and Yes. 

Ewan Carr posted on Saturday, June 23, 2012  3:05 am



Great, thanks for the quick response. Ewan  

anonymous Z posted on Thursday, September 10, 2015  5:08 pm



Dear Dr . Muthen, I have a mediation model. X > M > Y X and Y are continuous, and M is dichotomous. Following your communication with Ewan Carr on June 22, 2012, I fit the model with Bayes estimation. M was a significant mediator. m ON x (a); y ON m (b); y ON x; I have two questions: a.How to explain “ a”? Should I follow logistic regression to create exp (a) to explain the association between X and M? b.I used MODEL CONSTRAINT to create: NEW(indb); indb=a*b; I am confused about “a*b”, because the “a” here is a log odds, which is quite different from “b”? Thank you very much, 


a. Bayes uses probit, not logit. Look at our Topic 2 handout for how to interpret a probit regression. b. I recommend that you instead use Model Indirect where you will get effects defined from "counterfactuals" as is described in the paper on our website: Muthén, B. & Asparouhov, T. (2015). Causal effects in mediation modeling: An introduction with applications to latent variables. Structural Equation Modeling: A Multidisciplinary Journal, 22(1), 1223. DOI:10.1080/10705511.2014.935843 


Actually, in the current version of Mplus you need to use ML to get Model Indirect, not Bayes. You then have the choice of logit or probit for the M regression. Use Bootstrap = 1000; in the Analysis command and Cinterval(bootstrap); in the Output command. 

anonymous Z posted on Friday, September 11, 2015  6:49 am



Hi Dr. Muthen, Thank you so much for your prompt response. I chose to use Bayes because some of my variables are skewed even after transformation,and my sample size is quite small. 1. Is the combination of Bayes and Model Constraint still an option to get indirect effects? 2. I also found that bootstrapping cannot be performed with Bayes. So should I just look at the confidence interval for the new created variables for indirect effects? Thanks! 

anonymous Z posted on Friday, September 11, 2015  9:27 am



One followup question about mediation with Bayes estimation. Since bootstrapping cannot be performed with Bayes,what kind of method is used to test mediation? e.g., Is sobel test or other ways used by default? In my model, the indirect effects were significant, however, the direct effect of X on Y was NOT significant. Thanks so much! 


1. Yes. 2 and follow up. Bootstrap is not needed with Bayes. Bayes provides nonsymmetric credibility intervals. 

anonymous Z posted on Friday, September 11, 2015  12:20 pm



Thank you so much! 

anonymous Z posted on Tuesday, September 15, 2015  9:44 am



Drs. Muthen, With Bayes estimation, what option is available for the estimation of models with missing data? i.e, how missing data are dealt with? Thanks! 


Like ML, Bayes is a fullinformation estimator so it gets consistent estimates under MAR. ML and Bayes therefore give similar results with missing, where the estimates get closer with increasing sample size. Bayes is actually more flexible than ML because it avoids timeconsuming numerical integration that is required for some models. Bayes also offers multiple imputation. 

anonymous Z posted on Tuesday, September 15, 2015  1:37 pm



Thanks so much! Dr. Muthen! 

anonymous Z posted on Friday, September 18, 2015  9:27 am



Hi Drs. Muthen, With Bayes estimation, how to do the comparison between nested models? Thanks, 


For many types of models we give DIC and BIC for Bayes  and more models will have these in the forthcoming version 7.4. 

anonymous Z posted on Tuesday, September 22, 2015  9:11 am



Hi Dr. Muthen, Thank you very much for your reply. I just found that with a dichotomous mediator, Mplus does not give DIC and BIC for Bayes. I wonder if I need to include any extra commands in this case in order to get DIC and BIC. Thanks, 


If DIC and BIC do not come out automatically, they are not available. There is no option to ask for them. 

Back to top 