One common approach to combine moderation and mediation involves analyzing moderation and mediation in piecemeal fashion and interpreting their results jointly. With this approach, moderation is usually tested with analysis of variance (ANOVA) or regression analysis, in which the dependent variable Y is regressed on the independent variable X, the moderator variable Z, and their product XZ, as follows: