Skip to content

Simple Moderation (Hayes Model 1)

Mediation & Moderation

Tests whether the effect of an independent variable (X) on an outcome (Y) depends on the level of a moderator variable (W). easyCris fits an interaction model and reports conditional effects of X on Y at representative values of W.

When to Use

Use this analysis when you suspect that the relationship between X and Y is not the same for everyone, but varies depending on some third variable. For example, testing whether the effect of exercise on weight loss depends on age, or whether the effect of a drug differs between males and females.

Assumptions

  • The outcome variable can be continuous or binary. easyCris uses logistic moderation when the outcome is binary.
  • The relationship between predictors and the outcome is appropriately modeled as linear on the fitted scale.
  • For linear moderation, residuals should be independent and reasonably homoscedastic.
  • The moderator can be continuous, ordinal, or binary categorical.
  • Interaction models often induce correlation between main effects and the interaction term. Optional mean-centering can improve interpretability and reduce multicollinearity in some designs.

Required Inputs

InputTypeNotes
Independent Variable (X)Numeric / CategoricalThe predictor variable
Moderator (W)Numeric / CategoricalThe moderating variable
Dependent Variable (Y)Numeric / Binary CategoricalThe outcome variable
Covariates (optional)Numeric / CategoricalOptional control variables
ParameterDefaultOptions
Center predictor (X)UncheckedOptional mean-centering before fitting the interaction model.
Center moderator (W)UncheckedOptional mean-centering before fitting the interaction model.
Confidence Level95%Used for coefficient and conditional-effect confidence intervals.

Output Metrics

MetricWhat it means
RDisplayed in the Model Summary table for Model 1 runs.
R-sqDisplayed in the Model Summary table. For binary outcomes, the underlying value comes from the logistic-model fit summary even though the table keeps the standard R-sq label.
Adj R-sqDisplayed in the Model Summary table when available; some logistic runs may show NA.
MSEDisplayed in the Model Summary table; logistic runs can show NA under the standard table layout.
FDisplayed in the Model Summary and interaction-change tables. For binary outcomes, the underlying interaction-change calculation uses logistic-model likelihood logic even though the table keeps the F header.
df1Displayed in the Model Summary and interaction-change tables.
df2Displayed in the Model Summary and interaction-change tables; some logistic interaction-change rows can show NA.
Pr > FDisplayed in the Model Summary and interaction-change tables. For binary outcomes, the underlying calculation can be likelihood-ratio based even though the header remains Pr > F.
CoeffCoefficient column in the Model Coefficients table, including the X, W, and X*W rows.
SEStandard error column in the Model Coefficients and Conditional Effects tables.
tTest-statistic column label shown for linear-outcome Model 1 runs.
zTest-statistic column label shown for binary-outcome Model 1 runs.
Pr > |t|P-value column label shown for linear-outcome Model 1 coefficient and conditional-effects tables.
Pr > |z|P-value column label shown for binary-outcome Model 1 coefficient and conditional-effects tables.
LLCILower confidence limit shown in Model 1 coefficient and conditional-effects tables.
ULCIUpper confidence limit shown in Model 1 coefficient and conditional-effects tables.
R2-chngDisplayed in the interaction-change table.
W ValueeasyCris reports conditional effects at the selected or default probe values of W. By default these probes are the mean and +/- 1 SD of W.
EffectConditional effect of X on Y at each reported W value.

Interpretation

  • If the X*W interaction is statistically significant (p < alpha), the effect of X on Y depends on the level of W. This is the definition of moderation.
  • easyCris reports conditional effects of X on Y at the selected or default probe values of W. By default these are the mean of W and +/- 1 SD.
  • If the conditional effect is significant at some values of W but not others, X only predicts Y for certain levels of the moderator.
  • The interaction-change table keeps the standard displayed headers used by easyCris. For binary outcomes, the underlying change test uses logistic-model likelihood logic even though the table still shows R2-chng, F, and Pr > F.
  • For continuous moderators, the Johnson-Neyman technique can identify the exact value of W at which the effect of X on Y transitions from significant to non-significant (region of significance).

Common Pitfalls

  • Leaving X and W on their original scales is valid, but it can make the main effects harder to interpret because they are evaluated at W = 0 and X = 0 respectively.
  • Optional mean-centering can reduce multicollinearity and improve interpretability, but it does not change whether moderation is present.
  • A non-significant interaction does not prove the absence of moderation. Low power (small sample, weak effect) may prevent detection.
  • Interpreting main effects of X or W in the presence of a significant interaction is misleading unless the reference point of the other variable is meaningful.
  • Testing many potential moderators without correction inflates the Type I error rate. Pre-specify moderators based on theory.

How It Works

  1. easyCris optionally mean-centers X and W when the centering boxes are selected.
  2. easyCris creates the interaction term X*W and fits either a linear or logistic moderation model depending on the outcome type.
  3. The interaction coefficient b3 is the primary moderation test.
  4. easyCris also reports conditional effects of X across the selected or default W probe values. In the current app flow, the default probes are the mean and +/- 1 SD of W.

Citations

References

  • Baron, R. M., & Kenny, D. A. (1986). The moderator-mediator variable distinction in social psychological research. Journal of Personality and Social Psychology, 51(6), 1173-1182.
  • Hayes, A. F. (2022). Introduction to Mediation, Moderation, and Conditional Process Analysis (3rd ed.). Guilford Press (PROCESS framework).
  • Johnson, P. O., & Neyman, J. (1936). Tests of certain linear hypotheses and their application to some educational problems. Statistical Research Memoirs, 1, 57-93.