Table of Contents

Sample size determination for testing mediation with the mediation Bayes factor

Note that the method is based on Monte Carlo simulation. It can take a while to run. Wait for the program to complete and DO NOT refresh.

The model

The simple mediation model (standardized) is written as:

$$ M = a*X + e_m $$

$$ Y = c'*X + b*M + e_y $$

$a$: coefficient of the independent variable (X) in the mediator (M) model $b$: coefficient of the mediator (M) in the outcome (Y) model The mediation effect is quantified as $a*b$.

Input parameters