# Moderation analysis in two-instance repeated measures designs: Probing methods and multiple moderator models

## Abstract

Moderation hypotheses appear in every area of psychological science, but the methods for testing and probing moderation in two-instance repeated measures designs are incomplete. This article begins with a short overview of testing and probing interactions in between-participant designs. Next I review the methods outlined in Judd, McClelland, and Smith (*Psychological Methods* 1; 366–378, 1996) and Judd, Kenny, and McClelland (*Psychological Methods* 6; 115–134, 2001) for estimating and conducting inference on an interaction between a repeated measures factor and a single between-participant moderator using linear regression. I extend these methods in two ways: First, the article shows how to probe interactions in a two-instance repeated measures design using both the pick-a-point approach and the Johnson–Neyman procedure. Second, I extend the models described by Judd et al. (1996) to multiple-moderator models, including additive and multiplicative moderation. Worked examples with a published dataset are included, to demonstrate the methods described throughout the article. Additionally, I demonstrate how to use Mplus and MEMORE (Mediation and Moderation for Repeated Measures; available at http://akmontoya.com), an easy-to-use tool available for SPSS and SAS, to estimate and probe interactions when the focal predictor is a within-participant factor, reducing the computational burden for researchers. I describe some alternative methods of analysis, including structural equation models and multilevel models. The conclusion touches on some extensions of the methods described in the article and potentially fruitful areas of further research.

## Keywords

Linear regression Moderation Repeated measures Interaction Probing Johnson-NeymanAcross areas of experimental psychology and many other scientific fields, researchers are interested in questions that address the boundaries and contingencies of certain effects they observe. Do women feel more comfortable around men after learning their sexual orientation, or does it depend on whether the man is hetero- or homosexual (Russell, Ickes, & Ta, 2018)? Does fear-based advertisement always work, or will thinking about God make these methods less effective (Wu & Cutright, 2018)? Are all veterans equally likely to experience post-service stress, or will certain psychological characteristics impact the risk of stress (Mobbs & Bonanno, 2018)? These are all questions of *moderation* or *interaction*. Though some differentiate between these two terms, I will use them interchangeably (see VanderWeele, 2009, for a discussion of the differences from a causal modeling perspective). Statistical moderation analysis is used to test whether the relationship between a *focal predictor*, *X*, and an *outcome variable*, *Y*, depends on some *moderator*, *W*. For example, Kraus and Callaghan (2016) found that higher-class individuals were more likely to help than lower-class individuals in public contexts, but the opposite was true when the context was private, where lower-class individuals helped more than higher-class individuals. Here, the relationship between class (*X*) and helping (*Y*) depended on context (*W*). Learning has been shown to improve when adjunct questions are included in a text, but Roelle, Rahimkhani-Sagvand, and Berthold (2017) found that when reading texts with adjunct questions, receiving immediate feedback (*X*) had a detrimental effect on learning (*Y*) for students who felt that answering the questions was highly demanding (*W*). So, how is social class related to helping? Does immediate feedback lead to worse learning outcomes? It depends. Moderation analysis is a statistical method for testing whether these relationships depend on certain proposed variables (i.e., moderators).

In moderation analysis we test whether the relationship between the focal predictor (*X*) and the outcome (*Y*) depends on the moderator (*W*). If the analysis suggests that the answer is “Yes,” the next natural question is “How?” An interaction can look many different ways, and the practical implications of significant interactions often depend on how the relationship between *X* and *Y* changes across the range of *W*. For example, the relationship between *X* and *Y* can increase as *W* increases, or the relationship between *X* and *Y* can decrease as *W* increases. A hypothesis test of moderation would say the same thing for each of these patterns: “Yes, there is significant moderation.” Because each pattern tells a different story, a follow-up analysis is required to interpret these effects.

One way to understand moderation is by estimating and probing *conditional effects*. A conditional effect is the effect of one variable on another, conditioned on a third. In analysis of variance, these are called *simple effects*. In moderation analysis, researchers are typically interested in the conditional effect of *X* on *Y* at different values of *W.* This helps researchers better understand how the relationship between *X* and *Y* changes as *W* changes. Probing an interaction gives us information about the nature of this changing relationship. For example, imagine you are researching how after-school science experience (*X*; e.g., in a science club) predicts performance in science classes (*Y*), and whether the effect differs by gender (*W*). If you find an interaction between experience and gender, you know that the effect of after-school science experience is different for males than for females. The next questions you might ask are “Does after-school experience help boys but not girls?,” “Does it help girls but not boys?,” and “If after-school experience helps both boys and girls, is the effect stronger for one gender?” Probing the interaction can help answer these questions. This is done by estimating the effect of *X* on *Y* at a certain point (or points) along the moderator, and testing whether this effect is significantly different from zero. Directional tests can also be used to understand not just whether an effect is different from zero, but also whether it is positive or negative. Information about where effects are positive, indistinguishable from zero, and negative helps you understand the pattern of effects across the moderator.

## Rationale and summary

Moderation hypotheses can be investigated using a variety of experimental designs; however, the methods for conducting moderation analysis are not equally developed in all designs. Here, I focus on two designs: between-participant designs (e.g., participants are randomly assigned to condition; participants are observed once on each outcome of interest) and two-instance repeated measures designs (e.g., participants experience both conditions or are measured twice over time; participants are observed twice on each outcome of interest). Both designs are very common in psychology and other behavioral sciences. The defining difference between the two designs is that each participant is observed on each outcome only once in between-participant designs. In contrast, repeated measures designs observe each participant multiple times (e.g., over time, in multiple situations).

Methods for testing and probing interactions in between-participant designs have been established, and it has become typical for graduate students to learn how to conduct these analyses in an introductory regression course. Easy-to-use tools have been developed to help researchers conduct moderation analyses and probe interactions in between-participant designs (e.g., Hayes, 2018; Preacher, Curran, & Bauer, 2006). However, less is known about how to test moderation effects when either the moderator or the focal predictor is a within-participant factor. Judd and colleagues (Judd, Kenny, & McClelland, 2001; Judd, McClelland, & Smith, 1996) have provided the only treatments of this topic in a linear regression framework. Their two articles discuss moderation of the effect of a repeated measures treatment on some outcome by a variable that is measured once and assumed to be constant over instances (I call this a *between-participant variable*).

In this article, I begin by providing a short overview of testing and probing interactions in between-participant designs. Then I review the methods outlined by Judd et al. (2001, 1996) for estimating and conducting inference on interactions between repeated measures factors and between-participant variables using a linear regression approach. The primary purpose of this article is to extend the methods proposed by Judd et al. (2001, 1996) in two ways. First, I will explain how to probe interactions in a two-instance repeated measures design, a topic that has not yet been discussed in the methodology literature. Second, I extend the Judd et al. (1996) method to multiple moderator models, including additive and multiplicative moderation. Using published data, I provide a one moderator example and a two moderator example, both with repeated measures factors as focal predictors. Throughout the article, I will demonstrate how to use MEMORE (Mediation and Moderation for Repeated Measures; available at https://www.akmontoya.com), an easy-to-use tool available for SPSS and SAS, to estimate and probe interaction effects in which the focal predictor is a within-participant factor, reducing the computational burden for researchers. I also include Mplus code for estimating and probing these types of models. I conclude with alternatives and extensions of the proposed models as well as future directions, which include more than two instances, alternative models of change, and moderated mediation in two-instance repeated measures designs.

## Advantages of repeated measures designs

Repeated measures designs often boast some statistical and conceptual advantages over between-participant designs. In particular, with a repeated measures design each person can act as their own control. For instance, imagine a study in which participants read two stories, one that was sad and one that was happy. For each story they rate how likely they would be to help the main character. Helping tendency can vary a lot from person to person, with some people willing to help just about anyone and others who are the opposite. Here, a repeated measures design would be very advantageous because participants’ helping response from the sad story can be compared to their helping response from the happy story. In a within-participant design, the statistical noise due to individual differences can be avoided, making the estimate of the effect of story valence (sad vs. happy) on helping much more precise. When it is feasible for participants to be observed in all potential conditions in the study (i.e., when participating in multiple conditions is possible without concerns of carryover effects), there is a distinct statistical power advantage in using a repeated measures design.

A particular advantage of a within-participant design is the improved ability to observe causal effects on an individual. Like in between-participant designs specific assumptions are still required. When researchers are interested in cause and effect, they are typically interested in how some treatment might change an individual person. In a between-participants design, treatments are assigned to different sets of individuals and if treatment is randomly assigned, then group differences reflect a causal effect of the treatment. Here, inferential statements are limited to what a person *would have been like* if they had been in the other treatment condition, and this causal effect cannot be directly observed on any given individual. In a within-participant design, the information about what each participant would have been like in each condition is known. However, we do not know what each person would have been like if we had observed them in each condition in a different order. To observe causal effects, we must assume there are no carryover or order effects from the first observation to the second (i.e., causal transience), and there must also be an assumption of temporal stability, which means that the observed measurements do not depend on *when* they are measured (Holland, 1986). One particular advantage of the design and analysis described in this article is that, if order is counterbalanced across individuals, then order can be tested as a between-subjects moderator and the causal transience assumption can be tested statistically. However, it is important to note that traditional null hypothesis testing procedures cannot provide support for the claim of causal transience, as this would involve accepting the null hypothesis; rather, these tests can be used to detect violations of this assumption. Testing procedures such as equivalence testing could potentially be used to support the assumption of causal transience. If treatment order is randomized and balanced, the assumption of temporal stability is not required in order for estimates of the average causal effect to be unbiased (Josephy, Vansteelandt, Vanderhasselt, & Loeys, 2015; Senn, 2002).

## Moderation in between-participant designs

Before discussing moderation in repeated measures designs, I review the principles of testing and probing interactions in between-participant designs, in order to connect methods from this design to those for repeated measures designs. More extensive introductions to moderation analysis in between-participant designs can be found in Hayes (2018), Jaccard and Turrisi (2003), Aiken and West (1991), and many other articles and books. In a between-participant design, each participant is measured once on all variables involved: the focal predictor, moderator, and outcome variable.

*X*and

*Y*is constant with respect to

*W.*Researchers can test for moderation by allowing the relationship between

*X*and

*Y*to be a function of

*W*,

*f*(

*W*

_{i}). In psychology, the form for

*f*(

*W*

_{i}) is typically a linear function of the moderator,

*W*(e.g.,

*f*(

*W*

_{i}) =

*b*

_{1}+

*b*

_{3}

*W*

_{i}).

In this model, the outcome variable for participant *i*, *Y*_{i}, is a function of both participant *i*’s responses on focal predictor, *X*_{i}, and their response on the moderator, *W*_{i}. The error in estimating person *i*’s response on *Y*_{i} with this combination of *X*_{i} and *W*_{i} is represented by *ϵ*_{i}. The coefficient *b*_{0} corresponds to the intercept (predicted value of *Y* when *X* and *W* are both zero). The relationship between *X* and *Y* is a linear function of *W*: *b*_{1} + *b*_{3}*W*_{i}. The coefficient *b*_{2} can be interpreted as the relationship between *W* and *Y* when *X* is zero. This equation can be estimated using any multiple linear regression program. When *b*_{3} is zero, the relationship between *X* and *Y* does not depend on *W* (i.e., *b*_{1} + 0*W* = *b*_{1}). A test on \( {\widehat{b}}_3 \) is a test of moderation. (Hat notation denotes an estimate of a parameter).

*b*

_{3}also measures the degree to which the relationship between

*W*and

*Y*depends on

*X*.

If there is evidence of moderation, the researcher’s focus will shift toward the pattern of effects. The effect of one variable on another can depend on a third in many ways, and probing the interaction helps describe that pattern. The function *b*_{1} + *b*_{3}*W*, which I will denote *θ*_{X → Y} (*W*), is the *conditional effect of X on Y*, which is a function of *W*. While probing an interaction, *θ*_{X → Y} (*W*) is estimated and inference is conducted at different values of *W*. The researcher can select values of *W* and use the estimate of the conditional effect and its standard error to test if the relationship between *X* and *Y* is significantly different from zero at that value of *W*. There are two primary methods of probing an interaction: the pick-a-point approach and the Johnson–Neyman procedure.

Probing analyses are typically most informative when a test of interaction is significant, though there may be justifiable reasons why a researcher would want to probe an interaction that is not significant. A hypothetical example might be if a strong existing literature supported the relationship between *X* and *Y* in one group (e.g., heterosexual couples), but little was known about that relationship in another other group (e.g., homosexual couples). If the couple’s sexual orientation were the moderator, it might be worth examining the relationship between *X* and *Y* in the heterosexual group to confirm that the previous results were replicated. A brief warning: Researchers who probe nonsignificant interactions often find themselves grappling with explaining seemingly contradictory results. For example, it may be that the relationship between *X* and *Y* is not significantly moderated by sexual orientation of the couple. However, when probed the analysis might show the relationship between *X* and *Y* is significantly different from zero for heterosexual couples, but not significantly different from zero for homosexual couples. It is important to remember that a *difference in significance does not imply significantly different*. One conditional effect may be significantly different from zero and other may not. This does not mean that these two conditional effects are significantly different from each other.

### Pick-a-point

The pick-a-point approach (i.e., simple-slopes analysis or spotlight analysis) is a method for probing an interaction by selecting a value of the moderator then estimating and conducting inference on the conditional effect of the focal predictor on the outcome at that specific value of *W*. This helps answer the question “Is there an effect of *X* on *Y* at *w*?,” where *w* is a specific point on *W*.

The ratio of the estimate \( {\widehat{\theta}}_{X\to Y}(W) \) to its standard error can be compared to values from a *t*-distribution with *n* − *q* − 1 degrees of freedom, where *n* is the total number of participants and *q* is the number of predictors in the regression equation used to estimate the coefficients and standard errors. By comparing to the *t*-distribution a *p* value can be calculated, or the critical *t* value can be used to calculate a confidence interval*.*

The pick-a-point approach can be used for either dichotomous or continuous moderators. The choice of points to probe in the pick-a-point approach is very clear when the moderator is dichotomous. However, when the moderator is continuous the choice is often arbitrary. It has traditionally been recommended to select the mean of the moderator as well as the mean plus and minus one standard deviation (Aiken & West, 1991). However, these points may or may not be within the observed range of the data. Hayes (2018) recommends probing at percentiles (e.g., 16th, 50th, and 84th) to guarantee that the probed points are always within the observed range of the data. There are also instances in which certain points on the scale are particularly informative. For example, if the moderator is body mass index, then 18.5, 25, and 30 might be good points to probe as they indicate the boundaries between underweight, normal, overweight, and obese. For detailed discussions of the pick-a-point approach for between-participant designs, see Hayes and Matthes (2009), Aiken and West (1991), Hayes (2018), and Spiller, Fitzsimons, Lynch, and McClelland (2013).

### Johnson–Neyman procedure

The Johnson–Neyman procedure is another approach to probing interactions with continuous moderators (Johnson & Fay, 1950; Johnson & Neyman, 1936). This method removes the arbitrary choice of points along the moderator, and instead this method identifies important transition points (i.e., *boundaries of significance*) where the effect of the *X* on *Y* transitions from significant to nonsignificant, or vice versa. The procedure uses the same point estimate and standard error as the pick-a-point approach. However, rather than selecting a value of *W*, and calculating the associated *t*-statistic, the Johnson–Neyman procedure selects an *α* value and the associated critical *t* value, then solves for the values of *W* such that the conditional effect of *X* on *Y* is exactly significant at the preselected *α* value. This is done by setting the ratio of \( {\widehat{\theta}}_{X\to Y}(W) \) to its standard error equal to the critical *t* and solving for *W*.

Solving for *W* involves finding the roots of a polynomial equation, and as such the Johnson–Neyman procedure is limited to continuous moderators (Hayes & Matthes, 2009). The solutions can be imaginary or outside of the range of the observed data. Methodologists do not recommend interpreting these solutions (Hayes & Matthes, 2009; Preacher et al., 2006; Spiller et al., 2013). By finding the transition points that lie within the observed data, this method allows the researcher to understand the patterns of significance across the entire range of the moderator, rather than at arbitrarily selected points.

## Moderation in two-instance repeated measures designs

Moderation analysis and probing have been widely described in between-participant designs, resulting in an increasing use of methods and new tools that made probing interactions easier (Hayes, 2013; Hayes & Matthes, 2009). Recent advances in probing have generalized these methods to multilevel modeling and latent curve analysis (Bauer & Curran, 2005; Preacher et al., 2006). However, the two-instance repeated measures design has been largely ignored when it comes to probing methods. Judd et al. (2001, 1996) described methods for estimating and testing whether there is an interaction, and these methods have been used across areas of psychology to investigate questions of moderation. For example, among students with math difficulties, those with higher working memory capacity benefited more from strategy training (pre- to posttest) than those with lower working memory capacity (Swanson, Lussier, & Orosco, 2015). In another example, dyads were assigned to complete a paired task, and partners were randomly assigned to high- or low-power roles. The dyad members in high-power positions were more likely to dehumanize the low-power participant than vice versa, particularly when the high-power individual offered fewer resources to the low-power individual (Gwinn, Judd, & Park, 2013).

In this section I review the methods described by Judd et al. (2001, 1996) for testing whether some between-participant variable moderates the effect of a repeated measures factor on an outcome. I refer to the repeated measures factor as either an “instance” or “condition,” with the understanding that what differentiates the repeated measurements does not need to be an experimental manipulation. For example, in the dataset used in this article, participants were measured at two time points: before and after treatment. The between-participant variable can be something that is randomly assigned (e.g., experimental condition), or it can be something that is observed but assumed to be constant across instances of repeated measurements (e.g., eye color). I’ve created a macro, available for SPSS and SAS, that both estimates the model required to test moderation and gives extensive output related to the probing methods described in this article. This tool, MEMORE, is meant to ease the computational burden of conducting a thorough moderation analysis in the two-instance repeated measures design. Though not described in this manuscript, MEMORE can also be used to estimate mediation models in two-instance repeated measures designs (for instructions and examples, see https://www.akmontoya.com and Montoya & Hayes, 2017).

### Running example

Lasselin, Kemani, Kanstrip, Olsson, Axelsson, Andreasson, and colleagues (2016) investigated whether baseline inflammation moderated the effectiveness of behavioral treatment for chronic pain. They were particularly interested in whether the treatment was less effective for individuals with higher baseline inflammation. Patients with chronic pain were recruited to the study, which involved 12 weekly sessions using one of two behavioral treatments for chronic pain: acceptance and commitment therapy (ACT) or applied relaxation (AR). Participants reported their pain on a 6-point scale before starting treatment and after completion of the sessions. Baseline inflammation was measured by taking assays of two pro-inflammatory markers (IL-6 and TNF-*α*). The concentrations of these markers were log transformed to improve linearity and combined using principal components analysis. The analyses in this article differ slightly from the analyses in Lasselin et al. (2016). A single outlier was dropped for all analyses in this article. All tests are conducted at *α* = .05. For the original analysis and other variables measured in the study, see Lasselin et al. (2016). The data for this example are available for download at https://www.akmontoya.com. All analyses are described as if the data are in wide form (each row of the dataset represents a participant) rather than long form (each row of the dataset represents a participant in a specific instance).

### Testing the interaction

*Y*predicted by

*W*, the between-participant variable, where the regression weights for this model are allowed to vary by condition or instance (denoted using the subscript

*j*):

*Y*_{ij} is the measure of the outcome *Y* for participant *i* in condition or instance *j*. The measurement of participant *i* on the between-participant variable is denoted *W*_{i}. Notice that this measurement does not have a subscript *j* because it is not measured repeatedly, but rather assumed to be constant regardless of instance or condition. The intercept and regression weight for *W*_{i} are represented by *b*_{0j} and *b*_{1j}, respectively. Note that if there are two instances, there are two *b*_{0j}s: *b*_{01} and *b*_{02}. Similarly, there would also be two *b*_{1j}s. The intercept and slope are allowed to differ by condition. The *ϵ*_{ij}s are the errors in estimation for participant *i* in condition *j* and are assumed to be normally distributed with mean zero, variance \( {\sigma}_j^2 \), correlation *ρ* for observations from the same participant, and correlation of 0 for observations from different participants.

*b*

_{11}represents the relationship between

*W*and

*Y*in the first condition. The coefficient

*b*

_{12}represents the relationship between

*W*and

*Y*in the second condition. When

*b*

_{11}≠

*b*

_{12}, the relationship between

*W*and

*Y*depends on the condition (i.e., there is an interaction between condition and

*W*). To test a moderation hypothesis, we test whether

*b*

_{11}is equal to

*b*

_{12}. By subtracting Eq. 2 from Eq. 3, the coefficient for

*W*reflects the difference between

*b*

_{11}and

*b*

_{12}.

^{1}

Regress the difference of the *Y* variables *Y*_{i2} − *Y*_{i1} = *Y*_{Di} onto *W*, and if *b*_{1} is significantly different from zero, we conclude that there is evidence for an interaction between *W* and condition. This implies that *b*_{11} and *b*_{12} are not equal, which means the relationship between *W* and *Y* depends on the condition. This matches the intuitive understanding of an interaction. Equation 4 is referred to as a *simple moderation model*, where “simple” refers to their being one moderator, *W* (similar to “simple regression” referring to one predictor). The symmetry property holds in this model: support for the claim that the relationship between condition and *Y* depends on *W* is the equivalent to saying the relationship between *W* and *Y* depends on condition.

### Estimation with MEMORE

The command MEMORE calls the MEMORE macro. The instructions for installing the MEMORE macro can be found at https://www.akmontoya.com. The variables in the y list are used as the outcome variables. The difference score is taken in the order that the variables are inputted, in this case PrePain – PostPain . The variable in the w argument is the moderator, in this case inflame . When there is only one moderator, the researcher can use either Model=2 or Model=3; the results will not differ. The two additional commands will be explained in the probing section. See the model templates and documentation at https://www.akmontoya.com for more detail and instructions for SAS.

*R*

^{2}and a test of the overall variance explained. The second part of this section is a table of all the regression coefficients and their associated significance tests and confidence intervals. Each row corresponds to the results for the predictor denoted in the left column, where “constant” denotes the intercept. The estimated regression equation is

The estimate of the intercept, \( \widehat{b_0}=0.20 \), means that when the inflammation score is 0 (the sample mean for inflammation), the expected difference in pain is 0.20. Pain is expected be 0.20 units lower after treatment, but this effect is not significantly different from zero, *t*(38) = 1.06, *p* = .30. Additionally, for each unit increase in inflammation, there is a 0.40 unit decrease in the *difference in pain*, *t*(38) = –2.12, *p* = .04*.* The difference was constructed by subtracting post-treatment pain from pre-treatment pain, so lower scores reflect greater post-treatment pain relative to pre-treatment pain. If the treatment is considered effective when post-treatment pain is low relative to pre-treatment pain, then the treatment is less effective for individuals with higher baseline inflammation.

This information alone is very useful, but the researchers may have additional questions. Is the treatment still effective for people with high inflammation, just less so? How much is inflammation related to pre-treatment or post-treatment pain? These questions can be answered by probing the interaction. Next, I discuss how to probe an interaction between a repeated measures factor and between-participant variable.

### Probing the interaction

Just as in between-participant designs, the simple-slopes and Johnson–Neyman procedures can be used to probe moderation effects in two-instance repeated measures designs, though they have not been described in this context before. Two relationships can be probed: the effect of condition on the outcome variable at different values of *W*, and the effect of *W* on the outcome variable in different conditions. I will treat each of these separately, describing both the simple-slopes method and the Johnson–Neyman procedure where they apply.

#### Probing the effect of condition on the outcome

Researchers may be interested in estimating and conducting inference on the effect of condition at specific values of the between-participant variable *W* (e.g., estimating the expected difference, pre-treatment to post-treatment, in pain for an individuals with a specific inflammation score). How well does this treatment work for those who have relatively high inflammation, or for those with relatively low inflammation? A test of interaction examines if the difference in pain differs for those with varying levels of inflammation. However, a test of interaction does not estimate the treatment effect for individuals with a specific score on inflammation. Do people with high inflammation show little difference in pain from a treatment because inflammation reflects a high physical irritation that may not be relieved by behavioral interventions? Do people with low inflammation benefit from the intervention? These questions can be tested by using probing, by estimating the effect of condition at specific values of the between-participant variable using the simple-slopes method. Alternatively, regions of significance can be defined using the Johnson–Neyman method. This analysis would show both where along the between-participant variable any effects of condition on the outcome were significant and where the effects were not statistically significant.

### Simple slopes

*W*, say

*w*, then estimating the effect of condition on the outcome at the specific value

*W*=

*w*. Based on Eq. 4, the best estimate of the effect of condition on the outcome at a specific value of

*W*is \( {\widehat{\theta}}_{C\to Y}(W)={\widehat{b}}_0+{\widehat{b}}_3W \), where

*C*denotes condition and \( {\widehat{\theta}}_{C\to Y}(W) \) denotes the estimated effect of condition on the outcome variable

*Y*as a function of

*W*. This is the estimate of the difference in the outcome variables between conditions at a specific value of

*W*. The variance of \( {\widehat{\theta}}_{C\to Y}(W) \) can be estimated as

^{2}

The estimated variance of \( {\widehat{\theta}}_{C\to Y}(W) \) is a function of the chosen value of the moderator, *W*, the estimated variance of \( {\widehat{b}}_0 \), \( \widehat{\mathit{\operatorname{var}}}\left({\widehat{b}}_0\right) \), the estimated variance of \( {\widehat{b}}_1 \), \( \widehat{\mathit{\operatorname{var}}}\left({\widehat{b}}_1\right) \), and the estimated covariance between \( {\widehat{b}}_0 \) and \( {\widehat{b}}_1 \),\( \widehat{\mathit{\operatorname{cov}}}\left({\widehat{b}}_0,{\widehat{b}}_1\right) \). The estimates of the variances and covariances of the regression coefficients are available through most statistical packages that estimate regression models. However, typical programs used to conduct regression analysis will not calculate \( {\widehat{\theta}}_{C\to Y}(W) \) or \( \widehat{\mathit{\operatorname{var}}}\left({\widehat{\theta}}_{C\to Y}(W)\right) \) without additional work by the researcher.

The ratio of the estimate of *θ*_{C → Y}(*W*) to its standard error is *t*-distributed with *n* − *q* − 1 degrees of freedom, where *n* is the number of observations and *q* is the number of predictors in the regression model. In the case of Eq. 4, *q* = 1. Specific values of *W* can be plugged into the equation for \( {\widehat{\theta}}_{C\to Y}(W) \) and its \( \widehat{\mathit{\operatorname{var}}}\left({\widehat{\theta}}_{C\to Y}(W)\right) \). The ratio \( \frac{{\widehat{\theta}}_{C\to Y}(W)}{\sqrt{\widehat{\mathit{\operatorname{var}}}\left({\widehat{\theta}}_{C\to Y}(W)\right)}} \) can be calculated and compared to a critical *t*-statistic with the appropriate degrees of freedom. Alternatively, a *p* value can be calculated from the calculated *t*-statistic.

### Simple slopes with MEMORE

The probability that a *t*-statistic with 38 degrees of freedom is as or more extreme than 0.56 is *p* = .58. All these calculations can be done in MEMORE by including the Open image in new window argument in the command line. Figure 1 denotes the specific section of the output that corresponds to this command, including a table similar to the one described in the previous section, with estimates of the conditional effect of condition on the outcome at the requested values of the moderator and accompanying information for inference. In addition, MEMORE probes at the mean as well as plus and minus one standard deviation from the mean of the moderator by default (see Fig. 1, “Conditional Effect of ‘X’ on Y at requested values of moderator(s)” heading). See the documentation for additional probing options. The obvious follow-up question after probing at this specific point is then, for what values of inflammation is there a statistically significant effect of treatment on pain?

### Johnson–Neyman procedure

Just as in between-participant moderation, the ratio of \( {\widehat{\theta}}_{C\to Y}(W) \) to its standard error can be used to calculate the point(s) along the range of *W* where the ratio is exactly equal to the critical *t* value. These points mark the boundaries of significance for the relationship between condition and the outcome. By solving for these points, the Johnson–Neyman technique defines the pattern of significance for the relationship between condition and the outcome across the entire range of *W*.

*t*value and solving for

*W*, these points can be found using basic algebra. The critical

*t*value will be denoted as \( {t}_{\frac{\alpha }{2}, df}^{\ast } \). Ratios greater than \( {t}_{\frac{\alpha }{2}, df}^{\ast } \) will be significant at level

*α*.

In its mathematical form, there are always two solutions to this equation; however, these two solutions are not always interpretable. Just as in the between-participant case, solutions can be imaginary or fall outside of the range of the observed data, neither of which should be interpreted. Even when transition points are found within the range of the data, it is important to note how much of the data is above or below these points, in order to determine how much to trust them. Without data surrounding the Johnson–Neyman points, there is no evidence that the observed trend continues outside the range of the observed data, and thus no evidence that these points are either meaningful or interpretable.

The equation above looks fairly tedious to implement by hand, and computing these values by hand could result in rounding errors. Nonetheless, there is a closed-form solution for these points, and these points of transition can be found using MEMORE.

### Johnson–Neyman with MEMORE

*t*-statistic for 38 degrees of freedom and

*α*= .05 (the default) is 2.02, so the two solutions for the transition points are

The second point is well outside the observed range of inflammation (Range = –1.73 to 2.14); however, the first point is within the observed range of the data. The first part of the “Johnson–Neyman Procedure” portion of the MEMORE output includes the Johnson–Neyman points of transition as well as the percentage of the data that fall above that point. MEMORE does not print any Johnson–Neyman solutions that are outside of the observed range of the data. Since one of the solutions, 11.79, was outside the range of the data, MEMORE only printed one Johnson–Neyman solution. The point –0.63 is the transition between the significant and nonsignificant regions. The second part of this portion of the output is a table of probed values that helps give researchers a sense of the pattern of effects across the range of the moderator. The table indicates that points above –0.63 are significant, and those below are nonsignificant.

*y*-axis, marking no significant effect of treatment on condition (see Fig. 2). This kind of visualization can be helpful in understanding an interaction. Because a negative effect of treatment on condition means that post-treatment pain is higher than pre-treatment pain (

*Y*

_{D}< 0), scores below zero indicate an ineffective treatment, or even a treatment that increases pain over time. Positive scores, on the other hand, mean that pain after treatment is lower than pain before treatment. On the basis of Fig. 2, those with inflammation scores below –0.63 are expected to show significant improvement (reduction) in pain after the treatment.

#### Probing the effect of the moderator on the outcome

Estimating the relationship between the between-participant variable *W* and the outcome in each of the different conditions is much simpler than probing the effect of condition on the outcome. In Eqs. 2 and 3, *b*_{11} and *b*_{12} represent the relationship between *W* and *Y* in the first and second conditions, respectively. There is no need to condition on a specific value of a variable and then derive the variance of the conditional estimate. By estimating Eqs. 2 and 3 separately, \( {\widehat{b}}_{11} \) and \( {\widehat{b}}_{12} \) and their corresponding hypothesis tests are conditional estimates of the relationship between *W* and *Y* and tests of whether these relationship are different from zero. This is equivalent to the simple-slopes method and can conveniently be conducted in any regression program.

Probing the effect of *W* on *Y* is automatically conducted in MEMORE (see Fig. 1, “Conditional Effect of Moderator(s) on Y in each Condition” heading). Consider two individuals who are one unit different from each other on baseline inflammation. The individual with higher baseline inflammation is expected to be 0.0293 units higher in pain levels at baseline. This effect is not significantly different from zero, *t*(38) = 0.20, *p* = .84. However, in Condition 2 (i.e., post-treatment measurement period), a one-unit difference in baseline inflammation is related to a 0.43 unit difference in post-treatment pain levels, where higher baseline inflammation is related to higher post-treatment pain levels. This effect is significantly different from zero, *t*(38) = 2.22, *p* = .03. This is particularly interesting because pre-treatment pain and baseline inflammation were both measured in the same visit. One might expect that pre-treatment inflammation would be more related to pain before treatment than after. However, this shows clear evidence that the relationship is stronger and more positive for post-treatment pain, suggesting that some aspect of the treatment may be less effective for participants with high baseline inflammation. The Johnson–Neyman method cannot be used, because condition is not a continuous variable.

This completes our discussion of probing interactions between a repeated measures factor and a between-participant variable in two-instance repeated measures designs. Next, we move to a discussion of models that incorporate multiple moderators. There I will use additional potential moderators from Lasselin et al. (2016) as an example.

## Multiple-moderator models

Judd et al. (2001, 1996) introduced the regression-based approach to testing interactions between a repeated measures factor and a single between-participant variable. However, they did not generalize beyond a single moderator. When I refer to multiple moderators I mean two or more distinct variables that could impact the relationship between *X* and *Y*, rather than the same moderator measured multiple times. Extensions to multiple moderator models are very important as currently researchers often test a variety of single moderator models separately or conduct subgroup analyses (e.g., Blanco, Barberia, & Matute, 2015; Buunk, Ybema, Van Der Zee, Schaufeli, & Gibbons, 2001). Using separate models or subgroups analysis results in issues of confounding of interaction effects, and does not allow simultaneous testing of multiple moderators and thus can result in imprecise theories about moderation. Testing multiple moderators all together is more parsimonious, and gives the most detailed picture of how the moderators together interact with the focal predictor and each other to predict the outcome. Lasselin et al. (2016) posited that the degree to which effectiveness of treatment depends on inflammation might itself depend on whether the participants received AR or ACT (a three-way interaction), but they did not have the tools available to test this hypothesis. We will test that question in this section.

*X*,

*W*

_{1}, and

*W*

_{2}would also be included (Hayes, 2018). In this section, I generalize the simple moderation model for two-instance repeated measures designs to models with two moderators, though these methods can be generalized to any number of moderators. MEMORE will estimate and test additive and multiplicative moderation with up to five moderators. I provide an example using the data from Lasselin et al. (2016) with multiple moderators.

Comparison of three types of moderation models for two-instance repeated measures designs

### Additive moderation

*W*

_{1}and

*W*

_{2}, depends on the condition, but the effect of each moderator does not depend on the other moderator.

Equation 6 contains the coefficients of greatest interest *b*_{1} = *b*_{12} − *b*_{11} and *b*_{2} = *b*_{22} − *b*_{21}, as these reflect the degree to which condition moderates the effect of each moderator. By symmetry, this is also how each moderator impacts the effect of condition on the outcome. Hypothesis tests on the estimates of *b*_{1} and *b*_{2} will indicate whether the effects of *W*_{1} and *W*_{2} on *Y* differ by condition. Again, the symmetry argument applies: If \( {\widehat{b}}_1 \) and \( {\widehat{b}}_2 \) are significantly different from zero, this indicates that the effect of condition depends on *W*_{1} and *W*_{2}, respectively. This method can be generalized to any number of moderators.

A particularly useful application of additive moderation is when there is a single conceptual moderator, but it is multicategorical (more than two groups). In this case, the multicategorical moderator can be coded into *k*–1 variables, where *k* is the number of groups, using a coding system such as indicator or Helmert coding. Each of these variables can be included as a separate moderator, and the test of *R*^{2} would be a test of omnibus moderation (Hayes & Montoya, 2017).

*W*

_{1}would be

*W*

_{1}depends the condition

*C*, but it does not depend on the other moderator

*W*

_{2}. The conditional effect of condition would be

*θ*

_{C → Y}(

*W*

_{1},

*W*

_{2}) is a linear combination of the parameters defined by a vector that can be called \( \overset{\rightharpoonup }{l} \), where

The estimate of the variance of the conditional effect of condition is calculated by using the estimate of Σ. This is a general procedure for finding the standard error of any conditional effect, and only requires that the researcher identify \( \overset{\rightharpoonup }{l} \), the contrast vector that identifies the conditional effect of interest. Researchers can use MEMORE to calculate these effects automatically using the Open image in new window , and Open image in new window arguments (see the documentation at https://www.akmontoya.com).

### Multiplicative moderation

*Y*in each condition includes interaction terms, adding complexity to the model. A model is defined for the outcome in each condition:

*W*

_{1}and

*Y*in each condition as a function of

*W*

_{2}, or the relationship between

*W*

_{2}and

*Y*as a function of

*W*

_{1}. The new terms

*b*

_{31}and

*b*

_{32}represent the degree to which

*W*

_{1}and

*W*

_{2}interact in their respective conditions. The researcher may be interested in whether the interaction between

*W*

_{1}and

*W*

_{2}differs across conditions (i.e., is there a three-way interaction between condition,

*W*

_{1}, and

*W*

_{2}?). This could be tested by examining if

*b*

_{31}=

*b*

_{32}. To test this hypothesis, the difference between the equations can be used to define coefficients that estimate the parameters of interest.

Estimating Eq. 7 using a linear regression program would yield estimates of each of these coefficients along with inferential statistics. As was mentioned above, a test on \( {\widehat{b}}_3 \) would be a test of whether there is a three-way interaction between condition, *W*_{1}, and *W*_{2}. As additional moderators are added, the same method could be used to test higher order interactions that include a repeated measures factor.

In all previous analyses, tests on *b*_{1} and *b*_{2} were tests of two-way interactions. Now they are tests of *conditional two-way interactions*. The coefficient *b*_{11} is the effect of *W*_{1} on *Y*_{1} conditional on *W*_{2} being zero, and *b*_{12} is the effect of *W*_{1} on *Y*_{2} conditional on *W*_{2} being zero. The difference between *b*_{11} and *b*_{12}, *b*_{1}, is the degree to which the conditional effect of *W*_{1} on *Y* conditional on *W*_{2} being zero differs across conditions. Because the degree to which *W*_{1} affects *Y* in any given condition is allowed to depend on *W*_{2}, there is no single effect of *W*_{1} on *Y* in a specific condition. So, *b*_{1} reflects a conditional two-way interaction (between condition and *W*_{1}) conditional on *W*_{2} being zero. Similarly, *b*_{2} reflects the degree to which the effect of *W*_{2} on *Y* conditional on *W*_{1} being zero differs across conditions.

I’ve described how to test a three-way interaction between a repeated measures factor and two between-participant variables. This method can be generalized to any number of moderators. In addition to the test of interaction, probing can be used to better understand the pattern of effects. Especially with higher order interactions, understanding the pattern of effects throughout the range of the moderators can be very difficult by just examining the coefficients. Both Johnson–Neyman and simple-slopes probing methods can be generalized to higher order interactions, though the simple-slopes approach is often more interpretable as the researcher can choose specific sets of values for the moderators and estimate the effect of condition on the outcome. Generalizations of the Johnson–Neyman procedure to multiple-moderator models involve either higher dimensional spaces (Hunka & Leighton, 1997) or regions of significance for interactions (Hayes, 2018), both of which can be very difficult to interpret. Because of this I focus on using the pick-a-point procedure in multiple moderator models.

*W*

_{1}would be

*W*

_{1}is conditional on both the condition

*C*and the other moderator

*W*

_{2}. Additionally, the conditional effect of condition would be

These calculations are done in MEMORE using the Open image in new window , and Open image in new window arguments (see the documentation at https://www.akmontoya.com).

### Example of additive moderation with MEMORE

Lasselin et al. (2016) expressed concerns that perhaps the effects were stronger for participants who went through ACT rather than AR therapy, as had been found in Kemani et al. (2015). By adding in *type of therapy* as a moderator, this hypothesis can be tested. In this analysis, I will use additive moderation. The MEMORE command for this analysis in SPSS would be Open image in new window

*W*

_{1}and therapy type is

*W*

_{2}. Pain after treatment is expected to be 0.43 units lower than pain before treatment for those who are average on inflammation (

*W*

_{1}= 0) and in the ACT condition (

*W*

_{2}= 0), but this effect is not significant,

*t*(37) = 1.69,

*p*= .10. As inflammation increases by one unit, the difference between pain before and after treatment decreases by 0.38 units (i.e., treatment becomes less effective), and this effect is just significant,

*t*(37) = – 2.03,

*p*= .05. Finally, it seems that participants in the AR condition have 0.50 units less difference on pain from pre- to post-treatment, but this effect is not significant,

*t*(37) = – 1.34,

*p*= .19. If this effect were significant, it would indicate that AR therapy was less effective than ACT therapy at reducing pain, as was suggested by Kemani et al. (2015).

For both the additive and multiplicative moderation models, MEMORE probes the effect of condition at a variety of sets of values of the moderators (see Fig. 3, “Conditional effect of ‘X’ on Y at values of moderator(s)” heading). These results show that the treatment is most effective when inflammation is low (*W*_{1} = − 1.01) and with ACT therapy (*W*_{2} = 0). For this group, pain levels are expected to decrease 0.81 units over the course of treatment, *t*(37) = 2.64, *p* = .01. However, there is no significant reduction in pain when inflammation is high or with AR therapy.

In this section, I’ve described how to estimate and test moderation in two-instance repeated measures designs with multiple between-participant moderators. Although throughout the article I’ve described methods for testing these models using regression, there are alternative statistical approaches to answering these types of questions. I now turn to some short descriptions of these alternatives and where to learn more about them.

## Alternatives

The methods in this article proposed for testing moderation are not the only possible methods for testing a moderation hypothesis in a two-instance repeated measures design. Two particularly important methods require mention: structural equation modeling and multilevel modeling. Judd et al. (1996) directly compared the regression methods for testing an interaction described in this article to structural equation modeling. Multilevel modeling requires additional multiple observations of each person in each condition, but if this type of data is available, then methods for testing and probing interactions in multilevel models have been discussed in depth in other articles (Bauer & Curran, 2005; Preacher et al., 2006) and could be used.

### Structural equation modeling

*b*

_{11}and

*b*

_{12}to be equal, and then use a model comparison approach to test whether the model with free paths fits significantly better than the model with fixed paths. In a SEM approach, this would be done by using a

*χ*

^{2}goodness-of-fit statistic to compare the two models. Note, though, that the null hypothesis in this structural equation model is the same as in the methods proposed in this article. The concern is whether a model in which

*b*

_{11}=

*b*

_{12}describes the data sufficiently, or would it be better to allow the relationship between

*W*and

*Y*to vary by condition, thus allowing

*b*

_{11}≠

*b*

_{12}.

The SEM analyses could be conducted in a variety of structural equation modeling programs like LISREL, Mplus, AMOS, EQS, and so forth. Some of these programs only use the variance–covariance matrix of the variables to estimate the paths involved. Judd et al. (1996) found that little to no difference in statistical power or Type I errors between the methods proposed in this article and using a SEM approach.

To probe the interactions, the intercept is needed, so the means of the variables are also needed. Many programs have the functionality to accept either the raw data or the mean vector of all the variables in the dataset. Either way, this additional information would be needed to probe the interaction. Mplus allows the researcher to define additional parameters that can be combinations of existing parameters, and will then include inferential tests on these new parameters in the output. By choosing specific values of the moderator to probe at, and defining additional parameters using these values, the simple-slopes method is easy to implement in Mplus. The Johnson–Neyman procedure is not implemented in any of the existing structural equation modeling programs, so this method of probing would not be available in a SEM approach. Below is an example of Mplus code to estimate all the parameters of interest including the conditional effect of therapy on pain at an inflammation level of 0.85. Though there is not a way to get the exact Johnson–Neyman transition points in Mplus, there is a fairly simple way to get plots that align with the Johnson–Neyman procedure. I’ve also included code that creates the Johnson–Neyman plots (similar to the one in Fig. 2). The parameter estimates are identical, but the standard errors are slightly different, because Mplus uses asymptotic variance estimates (denominator of *N*) and ordinary least squares uses sample variance estimates (denominator of *N*–1). Open image in new window

One advantage of SEM is the superior methods available for dealing with missing data. Particularly with the methods described in this article, the use of the difference score means that if individuals have missing data on either observation of the outcome, they will not be included in the analysis when regression analysis is used. SEM allows for methods like full-information maximum likelihood, which can handle missing data without using any imputation methods. This means that individuals with some data can still contribute to the overall estimates.

An additional advantage of SEM approaches is the ability to include latent variables. Often the outcome variable or the moderator is not just one variable, but the combination of many. For example, Lasselin et al. (2016) conducted principal components analysis to create the measure of inflammation. This could have been integrated into the complete analysis by creating a latent variable that was indicated by each of observed inflammation variables, in which case the whole structural equation model, including a latent variable for inflammation, could have been estimated simultaneously. In the case in which the moderator is a latent variable and the only predictor in the model, using a structural equation modeling approach will likely result in better power and more accurate standard errors for coefficient estimates, since regression methods assume that there is no measurement error in the predictor variables. This is not necessarily the case with additive moderation, as measurement error in multiple variables can have varying effects on estimation. In the case of multiplicative moderation, latent moderators will result in latent interactions, an area of research that is still in development (e.g., Cham, West, Ma, & Aiken, 2012; Marsh, Wen, Hau, & Nagengast, 2013).

### Multilevel modeling

*i*denotes individual and

*j*indexes repeated measurements of that same individual.

*X*

_{ij}denotes the condition for person

*i*during replicate

*j*. The coefficients with subscripts

*i*are random by person. This is one of the great advantages of multilevel models, in that by including random coefficients, the dependencies among observations from the same person can be taken into account. The equations above may look very different from those used throughout this article, however when they are combined the resulting equation is quite similar to the equation used throughout this article, but also including person-specific errors.

The model above would be quite unstable with only two observations per person. A more stable model would be to fix the random coefficient for *X*_{ij}; however, this would then not allow for *W* to moderate the effect of *X* on *Y*. But if there are many replicates per person in each condition, these models should prove to be superior to the methods proposed in this article. Bauer and Curran (2005) and Preacher, Curran, and Bauer (2006) provide excellent introductions to moderation analysis in multilevel models and computational tools for both testing and probing interactions using simple-slopes and Johnson–Neyman procedure.

## Extensions

There are a variety of extensions for the methods proposed in this article, which could be useful throughout experimental psychology and other scientific fields. In this section I address a few of the ones that I expect to be of particular interest. Some extensions are described below, but others could provide potentially fruitful future directions of research.

### When *W* is expected to change across instances

Throughout this article I have addressed how to conduct moderation analysis when the moderator is a between-participant variable (measured once); however, researchers may wonder what to do if they believe that their moderator changes across instance. In this case, the researcher might measure the moderator twice, one in each instance. The original article by Judd et al. (1996) addressed “moderation” in this case. Looking more closely, however, the authors revised their approach to testing moderation when the moderator is measured repeatedly, and in their 2001 article they discussed this analysis as *mediation*. The hypothesis of moderation implies that the moderator impacts the relationship between instance and the outcome. This means the moderator should have temporal precedence over instance, and instance should not affect the moderator. If the moderator varies across instances, that means that instance is affecting the moderator. In this case it is difficult to discuss how the moderator affects the relationship between instance and the outcome, when it is clear that instance is affecting the moderator. Judd et al. (2001) addressed how to assess mediation when the mediator is measured in each instance, and Montoya and Hayes (2017) update this approach to the more modern path-analytic approach, providing a computational tool, MEMORE (Model 1), for conducting inference on the indirect effect in these cases.

### Including covariates

*should*be included. An important aspect of this analysis is that it is a within-person analysis. If there is an effect of a covariate on the outcome and it does not vary across conditions, this covariate will cancel out when taking the difference score. Lasselin et al. (2016) were also interested in how age might impact pain levels. In the equations below I denote Age as

*A*. Consider new versions of Eqs. 2 and 3, which now include age as a covariate:

*b*

_{21}=

*b*

_{22}), then when the difference score is taken age will cancel out and is not required in the final model.

Therefore, if researchers are concerned about controlling for an additional variable, but they do not believe that the effect of that variable depends on condition, then that variable is not needed. If instead they believe that the effect of that variable depends on condition and they want to control for it, then age or any other covariate of interest should be treated as an additional moderator.

### More than two instances

This article has focused on two-instance repeated measures designs; however, there may be situations when there are more than two conditions. Hayes and Montoya (2017) describe how to test moderation and probe moderation in a between-participant design when the focal predictor is multicategorical. In the within-participant case, including additional conditions involves taking contrasts of the conditions rather than difference scores (Judd et al., 2001). Using a structural equation modeling approach, contrasts of interest can be defined and a likelihood ratio test can be used to test the significance of the effect. Once these contrasts are defined, probing the conditional effects is a simple generalization of the work presented in this article; however, no published research has addressed this concern, nor are there computational tools to do so. When there are more than two conditions, there is also the opportunity to probe the omnibus test of group differences, an issue that is still unresolved in the within-participant case.

### Alternative models of change

It is worth noting that the autoregressive model is equivalent to the difference score model when *b*_{1} = 1 (Brogan & Kutner, 1980). Each of these models represents a different model of change, and it is likely that different methods will perform better or worse depending on what the true model of change is (if there is such a thing). Indeed much of the simulation work in this area has found that the performance of these different models depends on the generating model and no method works optimally for all types of data (Jamieson, 1995; Kisbu-Sakarya, MacKinnon, & Aiken, 2013; Petscher & Schatschneider, 2011). Much of the simulation work has focused on study designs in which individuals are randomly assigned to one of two conditions and measured twice (before and after treatment). The statistical methods described in this article could be used for that type of study, but also for studies involving continuous moderators. Future research could examine how these different models of change perform in investigating questions of moderation in which the moderator is continuous and not randomly assigned.

### Moderated mediation

The integration of mediation and moderation in between-participant designs has become a flourishing topic over the past decade (Edwards & Lambert, 2007; Fairchild & MacKinnon, 2009; Hayes, 2015; Preacher, Rucker, & Hayes, 2007). Perhaps one of the most promising future directions from this research would be the integration of mediation and moderation in two-instance repeated measures designs. Recent work has proposed path-analytic approaches for estimating and testing indirect effects in two-instance repeated measures designs (MacKinnon, 2008; Montoya & Hayes, 2017; Valente & MacKinnon, 2017). By combining methods for mediation and moderation, we can estimate and test the moderation of mechanisms in two-instance repeated measures designs and probe the indirect effects using methods similar to those proposed in this article.

## Conclusion

Previous research on moderation in between-participant designs has established both how to test for interactions/moderation and how to probe these moderation effects to better understand the pattern of effects across the moderator. Easy-to-use computational tools are available as additions to popular statistical software (e.g., SPSS and SAS) or available online and have made the adoption of these methods widespread throughout psychology and other academic research fields. Previous research on moderation analysis in two-instance repeated measures designs had only established how to test for an interaction, and been limited to a single moderator. This article generalized the analysis to include two probing methods, simple-slopes and the Johnson–Neyman procedure, as well as generalized the models to any number of moderators. MEMORE (available at https://www.akmontoya.com) can conduct inferential tests for moderation, probe using both methods described in this article, and test models with up to five moderators, which may either be additive or multiplicative. With these additional innovations and tools for two-instance repeated measures moderation analysis, researchers can now conduct their analyses more thoroughly and accurately, with better understanding of the nature of the interactions they are investigating.

## Footnotes

- 1.
The residuals in this equation (

*ϵ*_{i2}−*ϵ*_{i1}) are still normally distributed with constant variance. Assume that the correlation between*ϵ*_{i1}and*ϵ*_{j2}is*ρ*for all*i*=*j*, and zero for all*i*≠*j*; then, \( {\epsilon}_{i2}-{\epsilon}_{i1}\sim N\left(0,{\sigma}_1^2+{\sigma}_2^2-2\rho {\sigma}_1{\sigma}_2\right) \). - 2.
Under the assumptions of linear regression, \( {\widehat{b}}_0 \) and \( {\widehat{b}}_1 \) are normally distributed. If

*X*and*Y*are normally distributed,*aX*+*bY*is normally distributed, with variance*a*^{2}var(*X*) +*b*^{2}var(*Y*) + 2*ab*cov(*X*,*Y*).

## Notes

## References

- Aiken, L. S., & West, S. G. (1991). Multiple regression: Testing and interpreting interactions. Thousand Oaks: Sage.Google Scholar
- Bauer, D. J., & Curran, P. J. (2005). Probing interactions in fixed and multilevel regression: Inferential and graphical techniques.
*Multivariate Behavioral Research*,*40*, 373–400.CrossRefGoogle Scholar - Blanco, F., Barberia, I., Matute, H. (2015). Individuals who believe in the paranormal expose themselves to biased information and develop more causal illusions than nonbelievers in the laboratory.
*PLoS ONE*,*10*, e131378. https://doi.org/10.1371/journal.pone.0131378 CrossRefGoogle Scholar - Bonate, P. L. (2000). Analysis of pretest-posttest designs. New York: Chapman & Hall/CRC.CrossRefGoogle Scholar
- Brogan, D. R., & Kutner, M. H. (1980). Comparative analyses of pretest-posttest research designs.
*The American Statistician*,*34*, 229–232.Google Scholar - Buunk, B. P., Ybema, J. F., Van Der Zee, K., Schaufeli, W. B., & Gibbons, F. X. (2001). Affect generated by social comparisons among nurses high and low in burnout.
*Journal of Applied Social Psychology*,*31*, 1500–1520.CrossRefGoogle Scholar - Campbell, D. T., & Kenny, D. A. (1999). A primer on regression artifacts
*.*New York: Guilford Press.Google Scholar - Cham, H., West, S. G., Ma, Y., & Aiken, L. S. (2012). Estimating latent variable interactions with nonnormal observed data: A comparison of four approaches.
*Multivariate Behavioral Research*,*47*, 840–876.CrossRefGoogle Scholar - Cronbach, L. J., & Furby, L. (1970). How we should measure “change”—or should we?
*Psychological Bulletin*,*74*, 68–80.CrossRefGoogle Scholar - Edwards, J. R., & Lambert, L. S. (2007). Methods for integrating moderation and mediation: A general analytical framework using moderated path analysis.
*Psychological Methods*,*12*, 1–22.CrossRefGoogle Scholar - Fairchild, A. J., & MacKinnon, D. P. (2009). A general model for testing mediation and moderation effects.
*Prevention Science*,*10*, 87–99.CrossRefGoogle Scholar - Gwinn, J. D., Judd, C. M., & Park, B. (2013). Less power = less human? Effect of power differentials on humanization.
*Journal of Experimental Social Psychology*,*49*, 464–470.CrossRefGoogle Scholar - Hayes, A. F. (2015). An index and test of linear moderated mediation.
*Multivariate Behavioral Research*,*50*, 1–22. https://doi.org/10.1080/00273171.2014.962683 CrossRefGoogle Scholar - Hayes, A. F. (2018). Introduction to mediation, moderation, and conditional process analysis (2nd). New York: Guilford Press.Google Scholar
- Hayes, A. F., & Matthes, J. (2009). Computational procedures for probing interactions in OLS and logistic regression: SPSS and SAS implementations.
*Behavior Research Methods*,*41*, 924–936. https://doi.org/10.3758/BRM.41.3.924 CrossRefPubMedGoogle Scholar - Hayes, A. F., & Montoya, A. K. (2017). A tutorial on testing, visualizing, and probing an interaction involving a multicategorical variable in linear regression analysis.
*Communication Methods and Measures*,*11*, 1–30.CrossRefGoogle Scholar - Holland, P. W. (1986). Statistics and causal inference.
*Journal of the American Statistical Association*,*81*, 945–960.CrossRefGoogle Scholar - Hunka, S., & Leighton, J. (1997). Defining Johnson–Neyman regions of significance in the three-covariate ANCOVA using Mathematica.
*Journal of Educational and Behavioral Statistics*,*22*, 361–387.CrossRefGoogle Scholar - Jaccard, J., & Turrisi, R. (2003). Interaction effects in multiple regression (2nd). Thousand Oaks: Sage.CrossRefGoogle Scholar
- Jamieson, J. (1995). Measurement of change and the law of initial values: A computer simulation study.
*Educational and Psychological Measurement*,*55*, 38–46.CrossRefGoogle Scholar - Johnson, P. O., & Fay, L. F. (1950). The Johnson–Neyman technique, its theory and application.
*Psychometrika*,*15*, 349–387.CrossRefGoogle Scholar - Johnson, P. O., & Neyman, J. (1936). Tests of certain linear hypotheses and their application to some educational problems.
*Statistical Research Memoirs*,*1*, 57–93.Google Scholar - Josephy, H., Vansteelandt, S., Vanderhasselt, M.-A., & Loeys, T. (2015). Within-subjects mediation analysis in AB/BA crossover designs.
*International Journal of Biostatistics*,*11*, 1–22.CrossRefGoogle Scholar - Judd, C. M., Kenny, D. A., & McClelland, G. H. (2001). Estimating and testing mediation and moderation in within-subject designs.
*Psychological Methods*,*6*, 115–134. https://doi.org/10.1037/1082-989X.6.2.115 CrossRefPubMedGoogle Scholar - Judd, C. M., McClelland, G. H., & Smith, E. R. (1996). Testing treatment by covariate interactions when treatment varies within subjects.
*Psychological Methods*,*1*, 366–378. https://doi.org/10.1037/1082-989X.1.4.366 CrossRefGoogle Scholar - Kemani, M. K., Olsson, G. L., Lekander, M., Hesser, H., Andersson, E., & Wicksell, R. K. (2015). Efficacy and cost-effectiveness of acceptance and commitment therapy and applied relaxation for longstanding pain: A randomized controlled trial.
*Clinical Journal of Pain*,*31*, 1004–1016.CrossRefGoogle Scholar - Kisbu-Sakarya, Y., MacKinnon, D. P., & Aiken, L. S. (2013). A Monte Carlo comparison study of the power of the analysis of covariance, simple difference, and residual change scores in testing two-wave data.
*Educational and Psychological Measurement*,*73*, 47–62.CrossRefGoogle Scholar - Kraus M. W., & Callaghan, B. (2016). Social class and prosocial behavior.
*Social Psychological and Personality Science*,*7*, 769–777.CrossRefGoogle Scholar - Lasselin, J., Kemani, M. K., Kanstrup, M., Olsson, G. L., Axelsson, J., Andreasson, A., … Wicksell, R. K. (2016). Low-grade inflammation may moderate the effect of behavioral treatment for chronic pain in adults.
*Journal of Behavioral Medicine*,*39*, 916–924.CrossRefGoogle Scholar - Lord, F. E. (1963). Elementary models for measuring change. In C. W. Harris (Ed.), Problems in measuring change. Madison: University of Wisconsin Press.Google Scholar
- MacKinnon, D. P. (2008). Introduction to statistical mediation analysis. New York: Erlbaum.Google Scholar
- Marsh, H. W., Wen, Z., Hau, K., & Nagengast, B. (2013). Structural equation models of latent interactions and quadratic effects. In G. R. Hancock & R. O. Mueller (Eds.), A second course in structural equation modeling (2nd, pp. 267–308). Greenwich: Information Age.Google Scholar
- Mobbs, M. C., & Bonanno, G. A. (2018). Beyond war and PTSD: The crucial role of transition stress in the lives of military veterans.
*Clinical Psychology Review*,*59*, 137–144.CrossRefGoogle Scholar - Montoya, A. K., & Hayes, A. F. (2017). Two-condition within-participant statistical mediation analysis: A path-analytic framework.
*Psychological Methods*,*22*, 6–27. https://doi.org/10.1037/met0000086 CrossRefPubMedGoogle Scholar - Petscher, Y., & Schatschneider, C. (2011). A simulation study on the performance of the simple difference and covariance-adjusted scores in randomized experimental designs.
*Journal of Educational Measurement*,*48*, 31–43.CrossRefGoogle Scholar - Preacher, K. J., Curran, P. J., & Bauer, D. J. (2006). Computational tools for probing interactions in multiple linear regression, multilevel modeling, and latent curve analysis.
*Journal of Educational and Behavioral Statistics*,*31*, 437–448.CrossRefGoogle Scholar - Preacher, K. J., Rucker, D. D., & Hayes, A. F. (2007). Addressing moderated mediation hypotheses: Theory, methods, and prescription.
*Multivariate Behavioral Research*,*42*, 185–227.CrossRefGoogle Scholar - Roelle, J., Rahimkhani-Sagvand, N., & Berthold, K. (2017). Detrimental effects of immediate explanation feedback.
*European Journal of Psychological Education*,*32*, 367–384.CrossRefGoogle Scholar - Rogosa, D. (1995). Myths and methods: “Myths about longitudinal research” plus supplemental questions. In J. M. Gottman (Ed.), The analysis of change (pp. 3–65). Mahwah: Erlbaum.Google Scholar
- Russell, E. M., Ickes, W., & Ta, V. P. (2018). Women interact more comfortably and intimately with gay men—but not straight men—after learning their sexual orientation.
*Psychological Science*,*29*, 288–303.CrossRefGoogle Scholar - Senn, S. (2002) Cross-over trials in clinical research (2nd). Chichester: Wiley.CrossRefGoogle Scholar
- Spiller, S. A., Fitzsimons, G. J., Lynch, J. G., & McClelland, G. H. (2013). Spotlights, floodlights, and the magic number zero: Simple effects tests in moderated regression.
*Journal of Marketing Research*,*50*, 277–288.CrossRefGoogle Scholar - Swanson, H. L., Lussier, C. M., & Orosco, M. J. (2015). Cognitive strategies, working memory, and growth in word problem solving in children with math difficulties.
*Journal of Learning Disabilities*,*48*, 339–358.CrossRefGoogle Scholar - Thomas, D. R., & Zumbo, B. D. (2012). Difference scores from the point of view of reliability and repeated-measures ANOVA: In defense of difference scores for data analysis.
*Educational and Psychological Measurement*,*72*, 37–43.CrossRefGoogle Scholar - Twisk, J., & Proper, K. (2004). Evaluation of the results of a randomized controlled trial: How to define change between baseline and follow-up.
*Journal of Clinical Epidemiology*,*57*, 223–228.CrossRefGoogle Scholar - Valente, M. J., & MacKinnon, D. P. (2017). Comparing models of change to estimate the mediated effect in the pretest-posttest control group design.
*Structural Equation Modeling*,*23*, 428–450.CrossRefGoogle Scholar - VanderWeele, T. J. (2009) On the distinction between interaction and effect modification.
*Epidemiology*,*20*, 863–871.CrossRefGoogle Scholar - Wu, E. C., & Cutright, K. M. (2018). In God’s hands: How reminders of God dampen the effectiveness of fear appeals.
*Journal of Marketing Research*,*55*, 119–131.CrossRefGoogle Scholar - Zumbo, B. D. (1999). The simple difference score as an inherently poor measure of change: Some reality, much mythology. In B. Thompson (Ed.), Advances in social science methodology (5, pp. 269–304). Greenwich: JAI Press.Google Scholar

## Copyright information

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.