Your observations highlight a common but subtle issue in analyzing interactions in repeated-measures or time-series data. Let’s break down what’s happening and how to address it.
Why the Global Interaction BF is Low (BF = 2.6)
-
Interaction ≠ "Difference Evolves Over Time"
- A main effect of condition means the two groups differ on average across all time points.
- A main effect of epoch means both groups change over time in the same way (e.g., both increase linearly).
- An interaction means the rate of change differs between conditions (e.g., one group increases faster than the other).
- Your global model may be too simplistic (e.g., assuming a linear trend for both groups). If the true pattern is nonlinear (e.g., divergence only after epoch 3), a single linear interaction term won’t capture it well.
-
Bayesian Model Limitations
- The global BF for the interaction is only 2.6, which is weak evidence (Harold Jeffreys’ scale: 1–3 is "barely worth mentioning"). This suggests the linear interaction term doesn’t explain much additional variance beyond the main effects.
- If the divergence between conditions is concentrated in later epochs (as your pairwise BFs suggest), a global linear interaction may dilute the effect.
-
Pairwise Comparisons Show Stronger Effects
- Your pairwise BFs (e.g., 3–4: 73.7, 4–5: 521.7) reveal that the condition difference emerges later. This is a nonlinear interaction, which a global linear model misses.
- The early pairwise BFs are weak (1–2: 0.2, 2–3: 2.8) because the conditions don’t differ yet. This is not a contradiction—it’s evidence that the effect is time-dependent.
What You’re "Doing Wrong" (and How to Fix It)
-
Problem: Assuming Linearity
- If the interaction is nonlinear (e.g., conditions diverge only after epoch 3), a linear interaction term (
condition × time) won’t fit well. The global BF penalizes this misspecification.
- Fix: Model time flexibly. Options:
- Polynomial terms: Add
time² or time³ to capture curvature.
- Splines: Use smoothers (e.g.,
bs = "ps" in R’s brms) to let the data drive the time trend.
- Piecewise models: Fit separate slopes for early/late epochs (e.g.,
condition × time_before_epoch3 + condition × time_after_epoch3).
-
Problem: Overlapping Pairwise Tests
- Testing 1–2, 2–3, etc., introduces dependency (epoch 2 is in both 1–2 and 2–3). This inflates Type I error and makes interpretation messy.
- Fix: Use contrast analyses within the global model. For example:
- Test if the condition difference at epoch 6 is larger than at epoch 1 (a simple effects test).
- Use
emmeans (R) or hypothesis() in brms to compare specific time points.
-
Problem: BF < 1 for Interaction in Pairwise Models
- In pairwise models (e.g., epochs 1–2), the interaction BF is <1 because:
- There’s no interaction in that tiny window (the lines are parallel).
- The main effect of condition is also weak early on (BF = 0.2 for 1–2).
- This aligns with your global result: the interaction is weak on average, but strong locally in later epochs.
Better Approaches (Simple but Rigorous)
Option 1: Flexible Global Model
Fit a model with:
- Random intercepts/slopes per subject (if repeated-measures).
- A smooth term for time (e.g., splines) interacting with condition:
brm(value ~ condition * s(time, bs = "ps", by = condition) + (1 + time | subject),
data = dat, family = gaussian())
- This lets the interaction be nonlinear. Check if the BF for the smooth interaction improves.
Option 2: Simple Effects at Key Time Points
Instead of all pairwise tests, pick theoretically meaningful comparisons:
Option 3: Change-Point Model
If you suspect the divergence starts at epoch 3, model a broken stick:
brm(value ~ condition * (time + I(time > 3)) + (1 + time | subject), ...)
This estimates separate slopes before/after epoch 3.
Why Your Intuition is Correct (But Statistics Are Tricky)
- You’re right: The conditions diverge over time. The global linear interaction BF is low because:
- The effect isn’t linear (it’s concentrated in later epochs).
- The early noise (epochs 1–3) dilutes the signal.
- Pairwise BFs confirm this: The effect emerges at 3–4 and grows. This is a nonlinear interaction, which requires a more flexible model.
Key Takeaways
- Avoid assuming linearity for interactions in time-series data. Use splines or piecewise terms.
- Replace pairwise tests with planned contrasts (e.g., "is the effect at epoch 6 > epoch 1?").
- Report the nonlinearity: Your data suggest the conditions diverge after epoch 3—this is the story, not the global BF.
- Simplest fix: Fit a model with
condition * s(time, by = condition) and interpret the smooth interaction.
Example Code (R, brms)
library(brms)
mod <- brm(
value ~ condition * s(time, bs = "ps", by = condition) + (1 + time | subject),
data = dat,
family = gaussian(),
chains = 4, iter = 2000
)
hypothesis(mod, "conditionA - conditionB | time = 6 > conditionA - conditionB | time = 1")
This will give you a BF for whether the condition difference grows from epoch 1 to 6.