The syntax looks fine, I would recommend for the next step to use the hypothesis() function from brms to test the indirect effects etc, like
hypothesis(med_result, "M1_X * M2_M1 * Y_M2 > 0")
Also, if you want to run this types of models from the SEM framework you can use the blavaan package which also uses Stan for Bayesian SEM. For your model would look like this
Thank you, I checked your ebook and it’s very helpful! One question that came up to me was if I always have to add an intercept to the mediation models?
I’m not aware that you can decide to omit the mean structure with brms the way you would with SEM software. So to my knowledge, yes, the intercept is always a part of the model.
I am pretty sure can omit the intercept in brms, with either 0 or -1 in the bf. But to clarify you wouldnt be excluding the intercept from the model, you would be fixing it to 0. Which sounds weird to me for a mediation model, unless you have standardized all the variables before.
This does differ on the use of the intercepts in SEM, in frequentist SEM the intercepts are not included by default, but in that case it does not mean that they are fix to 0. This because the relations between variables are evaluated based on the covariance matrix, so the means/intercepts can be excluded without adding extra constraints. Now, BSEM models in blavaan will always include the means/intercepts and you would have to fix them to 0 if that is what you are looking for
I was not aware that the intercept is automatically entering the equations the way I wrote the model for brms. I think there is no need to set them to 0 in my case, so I will leave it as it is.
Yeah, when you think of mediation models with the aid of path models like AF Hayes uses in his books, it’s easy to forget about the intercepts. But if you use his PROCESS macros, you’ll discover they’re still there, lurking in the shadows. And to be fair to Hayes, he discussed intercepts in his textbooks. Anyway, unless you have strong reasons to do otherwise, I recommend including the intercepts in your models and thinking carefully about how they might influence the other parameters.
I am restarting this topic as there are very few clear resources on this topic on the web.
And I didn’t find any thorough example for brms.
Lets say we have a similar model as the one proposed by Jochen, what would be the tests to do to validate the mediation ?
Mauricio_Garnier-Villare gave us a clue for the full indirect effect :
hypothesis(med_result, "M1_X * M2_M1 * Y_M2 > 0")
Do we need to test all mediation effects as well as the direct effect ?
Is the computation of the mediation proportion different ?
I would do total (indirect effect / total effect ).
What about if one of the indirect effects is not significant, but the rest is ? Is the mediation partially valid ? How to compute the mediation proportion ?
I might be asking a lot, but I guess some nice resources or a more complete analysis example could help fully understand serial mediation models.