Statistics How To

Moderating Variable (or Moderator)

Types of Variables > Moderating Variable

What is a Moderating Variable?

Moderating variables have an effect on how x and y variables relate to each other.

Moderating variables have an effect on how x and y variables relate to each other.

A moderating variable, also called a moderator variable or simply M, changes the strength or direction of an effect between two variables x and y. In other words, it affects the relationship between the independent variable or predictor variable and a dependent variable or criterion variable. Moderating variables can be qualitative (non-numerical values like race, socioeconomic class or sex) or quantitative (numerical values like weight, reward level or age). For example:

  • According to the American Psychological Association, stress has a bigger impact on men than women. Sex is a qualitative variable that moderates the strength of an effect between stress and health status.
  • There may be a relationship between socioeconomic status and how often women perform self-exams on their breasts. Age is possibly a numerical moderating variable: the relationship for socioeconomic status and breast self-exams might be weaker in younger women and stronger in older women.

In correlation studies, the moderating variable is defined as a third variable — z — that affects the correlation between two variables x and y. A statistically significant moderating variable can amplify or weaken the correlation between x and y.

Finding the Variables

The moderating variable is technically another predictor variable, so you would run multiple regression analysis (called moderator analysis by some software) to find the moderating variables.

In SPSS: has thorough steps for the analysis, with step by step images.

In Stata: the process is a little lengthy, but you can find a guideline on the UCLA website.

American Psychological Association (undated). Stress and Gender. Retrieved May 12, 2016 from here.
Baron, R. M., & Kenny, D. A. (1986). The moderator-mediator variable distinction in social psychological research: Conceptual, strategic, and statistical considerations. Journal of Personality and Social Psychology, 51, 1173-1182.
Hayes, A.F. (2013) Introduction to Mediation, Moderation, and Conditional Process Analysis: A Regression-Based Approach. New York, NY: Guilford Press


Need help with a homework or test question? With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field. If you'd rather get 1:1 study help, Chegg Tutors offers 30 minutes of free tutoring to new users, so you can try them out before committing to a subscription.

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

Comments? Need to post a correction? Please post a comment on our Facebook page.

Check out our updated Privacy policy and Cookie Policy

Moderating Variable (or Moderator) was last modified: August 14th, 2018 by Stephanie