Mediation models are commonly applied in a variety of modeling settings, and people will typically flock to tools specific to structural equation modeling like Mplus or Amos for analysis. However, not only are such tools not necessary for the more common implementations of mediation, they are often limiting and have various drawbacks.
Fortunately there are a variety of packages in R that can do mediation analysis, often using straightforward code and familiar models or other tools. This presentation will demonstrate a variety of ways in which to do a standard mediation model in R (and Python), and discuss the available complexities that can be handled with the tools, as well as their corresponding strengths and weaknesses.
Note that this is not an introduction to mediation analysis, but is a demonstration of tools. Some familiarity with R and mediation models will be assumed.