Related Experiment Video
Updated: Aug 19, 2025

Development of an Individual-Tree Basal Area Increment Model using a Linear Mixed-Effects Approach
Published on: July 3, 2020
Power analysis for conditional indirect effects: A tutorial for conducting Monte Carlo simulations with categorical
Samuel Donnelly1, Terrence D Jorgensen2, Cort W Rudolph3
1Department of Psychology, Saint Louis University, 3700 Lindell Blvd, St. Louis, MO, 63103, USA. samuel.donnelly@slu.edu.
This study addresses sample size planning for moderated mediation models, crucial for behavioral science research. It provides a Monte Carlo simulation tutorial and R code toolkit for designing experiments with categorical variables.
Area of Science:
- Behavioral Sciences
- Statistical Modeling
- Quantitative Psychology
Background:
- Moderated mediation models, examining conditional indirect effects, are increasingly prevalent in behavioral research.
- Existing literature offers guidance on model specification and testing but lacks advice on study design and sample size planning (power analysis).
- Challenges exist in determining appropriate sample sizes for complex models like moderated mediation.
Purpose of the Study:
- To discuss the challenges associated with sample size planning for moderated mediation models.
- To provide a tutorial for conducting Monte Carlo simulations for power analysis in moderated mediation.
- To offer practical tools, including reproducible R code, to aid researchers in designing studies for moderated mediation.
Main Methods:
- Utilized Monte Carlo simulations to explore sample size requirements for moderated mediation models.
- Focused on scenarios with categorical exogenous variables, common in experimental research designs.
- Developed a toolkit with example data and R code for reproducible analysis.
Main Results:
- Identified specific challenges in sample size planning for moderated mediation.
- Demonstrated the utility of Monte Carlo simulations for power analysis in this context.
- Provided a practical R-based toolkit to facilitate research design.
Conclusions:
- Effective sample size planning is critical for robust moderated mediation analysis.
- The provided simulation tutorial and R toolkit can enhance the design of experimental studies in behavioral science.
- Researchers are encouraged to use these resources to improve the rigor of their moderated mediation research.
Related Concept Videos
Friedman Two-way Analysis of Variance by Ranks
Parametric Survival Analysis: Weibull and Exponential Methods
Weibull Distribution
The Weibull distribution is a flexible model used in parametric survival analysis. It can handle both increasing and decreasing hazard rates, depending on its shape parameter...
Causality in Epidemiology
Randomized Experiments
Simple randomization
Simple...
Assumptions of Survival Analysis
Contingency Table

