I am new to both Mplus and path analysis. I want to see if M mediates the relationship between X and Y. Both M and Y are coded dichotomously. I also have several control variables (CV) I want to include. I planned on using the ML estimator given that it is more efficient than WLSMV. Here is the code I have been using:
Variable: names are Y X M CV1 CV2 CV3; usevariables Y X M CV1 CV2 CV3; categorical are M Y; Analysis: bootstrap=1000; Estimator=ml; Model: Y on X M CV1 CV2 CV3(p1); optimism1 on X CV1 CV2 CV3(p2); Model Constraint: NEW(XtoY); XtoY = p1*p2; OUTPUT: cinterval(bcbootstrap);
However, I found that with the ML estimator, I cannot test for indirect effects specifically (hence the model constraint option). This did not provide a stated test of the indirect effect like when I used the default estimator. Instead, it provided the estimates (though not the OR) for the new parameter XtoY. How do you interpret these results? Since my main research question surrounds the indirect effect, would it be better to use the default estimator so I can include the stated indirect effects test (versus the model constraint)?
2) Should I run the model without the potential mediator so I can compare the fit statistics across the two models? 3) Is my coding for the control variables correct?
Thank you for your prompt reply. I know this is a 'basic' question, but could you tell me what the second parameter is in the code "y on x m (b)"? Is it the (b)? I saw that on example code using the model constraint option and assumed I needed it, without knowing what the (b) referred to.
2) Thank you for that guidance. I saw that the book is not available for order right now-- do you know when it will be available? Do you know of any other sources that would be helpful in the interim?