Top of page
Skip to main content

Testing the difference between two mediation paths in AMOS

When two mediation chains connect the same X and Y, the Difference row estimates how far apart their indirect effects are. This guide builds a worked example from simulated data, defines both path products in AMOS and shows which estimate, standard error and confidence interval belong in that row.

Start reading

1. Choose the chains and the direction of the contrast

Suppose X predicts Y through the following two chains. They share the first path, X → M1, and the last, M3 → Y. A different mediator occupies the middle of each chain.

  • Chain A · X → M1 → M2A → M3 → Y
  • Chain B · X → M1 → M2B → M3 → Y
X leads to M1. Two branches pass through M2A and M2B, rejoin at M3 and lead to Y. X also leads directly to Y, and the residuals eA and eB covary.
Figure 1. Two serial mediation chains in a single path model. The dashed arrow is the direct path cp. The double-headed arrow connects residuals eA and eB. All boxes represent observed variables.

Define Δ = IEA − IEB before fitting the model. A positive contrast means A has the larger signed value. Reversing the order reverses the sign. When both effects are negative or have opposite signs, a contrast of signed effects addresses a different question from a contrast of absolute magnitudes (Coutts & Hayes, 2023).

Estimate both chains within the same model to retain the covariance between the products. This observed-variable example includes the direct path X → Y and a residual covariance between M2A and M2B. A causal interpretation requires separate justification of temporal order and identification assumptions (Tofighi & Kelley, 2020). Estimate the residual covariance in the model and leave it out of the directed path products. For latent variables, label the structural regressions after specifying an appropriate measurement model (Preacher & Hayes, 2008).

Table 1. Regression path labels and simulated unstandardized estimates
Regression pathLabelB
X → M1a0.683949
M1 → M2AbA0.559627
M1 → M2BbB0.469524
M2A → M3cA0.513107
M2B → M3cB0.456081
M3 → Yd0.579798
X → Ycp0.254771

2. Define the two products, their sum and their difference

In this linear model, each specific indirect effect is the product of the unstandardized coefficients along its chain. The null hypothesis for the contrast is H0: Δ = 0. Re-estimate the shared coefficients a and d in every resample (Preacher & Hayes, 2008).

IE_A = a × bA × cA × d
IE_B = a × bB × cB × d
Δ = IE_A − IE_B = a × d × (bA × cA − bB × cB)

Use Sum_2Chains for the sum of these two products. In this model those are the only indirect paths from X to Y, so the total effect is cp + Sum_2Chains. If you add a path such as X → M3 → Y, include its product when computing the total indirect effect.

3. Define the estimands in AMOS

  1. Double-click each arrow. Under Object Properties → Parameters, assign the regression weight labels in Table 1. Give distinct labels to coefficients that should be estimated separately.
  2. From the status bar, select Define new estimands to open the simple estimand editor. Enter one expression per line. The p. prefix identifies a labelled parameter.
  3. Choose Check Syntax and match each product against the diagram before saving. The syntax check verifies the expressions. The analyst still has to verify the chosen paths and direction of subtraction.
IE_A = p.a * p.bA * p.cA * p.d
IE_B = p.a * p.bB * p.cB * p.d
Sum_2Chains = p.a * p.bA * p.cA * p.d + p.a * p.bB * p.cB * p.d
Diff_A_B = p.a * p.bA * p.cA * p.d - p.a * p.bB * p.cB * p.d

Adapt the labels in the AMOS estimand file to your diagram. The official AMOS tutorial shows how to name and save expressions and find them in Amos Output (Amos Development Corporation, n.d.-b; Amos Development Corporation, n.d.-c).

4. Bootstrap the contrast and find its output row

Open View → Analysis Properties → Bootstrap. Select Perform bootstrap and choose Bias-corrected confidence intervals if specified in your analysis plan. This example uses 5,000 case resamples and a 95% confidence level. After fitting, check warnings and the number of valid replicates before reporting estimates (Amos Development Corporation, n.d.-c).

Table 2. Where to find the three results for Diff_A_B
Reporting columnLocation in Amos Output
BEstimates → Scalars → User-defined estimands. Read the original-sample estimate.
Bootstrap SEBootstrap standard errors. Read the standard error for the contrast from the estimand table.
Lower and upper limitsBias-corrected percentile method. Read both limits on the same row at the selected confidence level.

In every bootstrap sample, recompute IEA and IEB and save that sample’s Δ. Construct the interval from the resulting distribution of Δ. Subtracting the two effects’ confidence bounds or combining their SEs under independence discards information about their dependence (Preacher & Hayes, 2008).

Var(Δ) = Var(IE_A) + Var(IE_B) − 2 × Cov(IE_A, IE_B)

5. Complete the Difference row with simulated data

Teaching data. 480 independent simulated observations. The table uses equation-by-equation ordinary least squares and 5,000 case resamples. The 95% intervals use the bias-corrected percentile (BC) method without acceleration. The numerical illustration was calculated independently of AMOS. The AMOS steps follow the official documentation. The example model has yet to be run in AMOS.

BC illustrates one available output. Simulation research on sequential indirect effects has found below-nominal coverage for BC intervals in some conditions. Choose the interval method to suit the analysis plan and the data (Tofighi & Kelley, 2020).

Table 3. Indirect effects and their contrast in the simulation
EstimandBBootstrap SE95% BC CI
IE_A0.11390.0149[0.0881, 0.1459]
IE_B0.08490.0130[0.0624, 0.1133]
Sum_2Chains0.19880.0224[0.1588, 0.2463]
Diff_A_B0.02900.0167[−0.0020, 0.0630]

Both individual intervals lie above zero. Yet the contrast of 0.0290 has a 95% CI of [−0.0020, 0.0630]. Report insufficient evidence of a difference. A conclusion of equivalence calls for a prespecified margin and an appropriate inferential procedure (Lakens, 2017). Likewise, if only one indirect effect achieves statistical significance, draw the comparison from the interval for Δ (Gelman & Stern, 2006; Coutts & Hayes, 2023).

The bootstrap SE of the contrast is 0.0167. Setting the covariance to zero and taking the square root of the sum of the individual squared SEs instead gives about 0.0197. The two-chain sum is 0.1988. Adding the direct path cp gives a total effect of 0.4536.

Download synthetic data (CSV, 480 rows). In SPSS, open the CSV via File → Import Data → CSV, set the decimal symbol to a period, check that the six model variables are numeric and save as SAV. Use id to identify records and leave that column out of the path model. Keep the direct path X → Y and the residual covariance between M2A and M2B. The independent calculation record gives the values before rounding. Bootstrap SEs and confidence limits can vary between runs.

6. Standardize the contrast when reporting β

Products of estimates called through p. are on the original scale, so report B. To express a change in Y in standard-deviation units per one-standard-deviation increase in X, multiply each effect by SD(X) / SD(Y). The chains have the same endpoints, so the multiplier applies to the contrast as a whole. The intermediate variables’ scales cancel within the path products (Preacher & Hayes, 2008).

Diff_A_B_std = (p.a * p.bA * p.cA * p.d - p.a * p.bB * p.cB * p.d) * Math.Sqrt(e.ImpliedCovariance(X, X) / e.ImpliedCovariance(Y, Y))

e.ImpliedCovariance(X, X) returns the model-implied variance of X. Pass the variable names X and Y as they appear in the model, then verify them with Check Syntax. Use the total implied variance of Y, which includes explained and residual variance. When bootstrapping standardized effects, calculate the SD ratio from the fitted model in each resample (Amos Development Corporation, n.d.-a; Amos Development Corporation, n.d.-b).

7. Account for the sampling design before bootstrapping

This exercise generated independent rows. If respondents share a classroom, firm or rater, identify the number and sizes of clusters and the level at which X, Y and the mediators are measured. Cluster-adjusted inference is an option for a single-level question. A question about distinct within- and between-cluster associations calls for a multilevel model with effects defined at the relevant level (Muthén & Satorra, 1995).

An ICC near zero has sampling uncertainty. With equal cluster sizes m and an appropriate within-cluster correlation structure, DE ≈ 1 + (m − 1) × ICC is a design effect for a mean. For 64 clusters of eight and a hypothetical ICC of 0.020, DE is 1.14. This calculation concerns the mean under consideration. A value below 2 alone is insufficient to disregard the design, especially with small clusters or a higher-level predictor (Raykov & DiStefano, 2022; Lai & Kwok, 2015).

In a cluster-adjusted sensitivity analysis, compare the same Δ and its interval. One option is to obtain a cluster-adjusted parameter covariance matrix and propagate that uncertainty to the estimand. For a bootstrap, choose the resampling unit to match the design. In a simple one-stage cluster design, the unit is usually the entire cluster (Muthén & Satorra, 1995).

8. Report the contrast

Example wording when the interval includes zero

Both specific indirect effects were estimated within the same model. The A-minus-B contrast was B = [estimate], bootstrap SE = [value], and [confidence level]% [method] CI [lower, upper], based on [number of valid replicates] resamples of [sampling unit]. The interval included zero, so the data provided insufficient evidence of a difference between the two specific indirect effects.

Before submission, check the subtraction order, scale and bootstrap method against the code and the results table. For clustered data, report the sampling design and the sensitivity analysis for the contrast itself.

References

  • Amos Development Corporation. (n.d.-a). ImpliedCovariance method. Official documentation.
  • Amos Development Corporation. (n.d.-b). Simple user-defined estimands. Official documentation.
  • Amos Development Corporation. (n.d.-c). User-defined estimands [Tutorial]. Official documentation.
  • Coutts, J. J., & Hayes, A. F. (2023). Questions of value, questions of magnitude: An exploration and application of methods for comparing indirect effects in multiple mediator models. Behavior Research Methods, 55, 3772–3785. DOI.
  • Gelman, A., & Stern, H. (2006). The difference between “significant” and “not significant” is not itself statistically significant. The American Statistician, 60(4), 328–331. DOI.
  • Lai, M. H. C., & Kwok, O. (2015). Examining the rule of thumb of not using multilevel modeling: The “design effect smaller than two” rule. The Journal of Experimental Education, 83(3), 423–438. DOI.
  • Lakens, D. (2017). Equivalence tests: A practical primer for t tests, correlations, and meta-analyses. Social Psychological and Personality Science, 8(4), 355–362. DOI.
  • Muthén, B. O., & Satorra, A. (1995). Complex sample data in structural equation modeling. Sociological Methodology, 25, 267–316. DOI.
  • Preacher, K. J., & Hayes, A. F. (2008). Asymptotic and resampling strategies for assessing and comparing indirect effects in multiple mediator models. Behavior Research Methods, 40(3), 879–891. DOI.
  • Raykov, T., & DiStefano, C. (2022). Design effect in multilevel settings: A commentary on a latent variable modeling procedure for its evaluation. Educational and Psychological Measurement, 82(5), 1020–1030. DOI.
  • Tofighi, D., & Kelley, K. (2020). Indirect effects in sequential mediation models: Evaluating methods for hypothesis testing and confidence interval formation. Multivariate Behavioral Research, 55(2), 188–210. DOI.