library(interactions)interact_plot(m3, pred = AgeC, modx = Emergency)
3.25 Plot simple slopes with data
interact_plot(m3, pred = AgeC, modx = Emergency, plot.points =TRUE)
3.26 Simple slopes analysis
sim_slopes(m3, pred = AgeC, modx = Emergency, johnson_neyman =FALSE)
SIMPLE SLOPES ANALYSIS
Slope of AgeC when Emergency = 0.00 (0):
Est. S.E. t val. p
------- ------ -------- ------
-0.54 0.23 -2.33 0.02
Slope of AgeC when Emergency = 1.00 (1):
Est. S.E. t val. p
------ ------ -------- ------
0.22 0.10 2.16 0.03
3.27 Johnson-Neyman intervals
For which values of AgeC are the Emergency groups different?
Not about the slopes but about the values
Johnson, P. O., & Fay, L. C. (1950). The Johnson-Neyman technique, its theory and application. Psychometrika, 15, 349–367.
3.28 Johnson-Neyman intervals
sim_slopes(m3, pred = AgeC, modx = Emergency, johnson_neyman =TRUE)
JOHNSON-NEYMAN INTERVAL
When Emergency is OUTSIDE the interval [0.26, 0.97], the slope of AgeC is p
< .05.
Note: The range of observed values of Emergency is [0.00, 1.00]
SIMPLE SLOPES ANALYSIS
Slope of AgeC when Emergency = 0.00 (0):
Est. S.E. t val. p
------- ------ -------- ------
-0.54 0.23 -2.33 0.02
Slope of AgeC when Emergency = 1.00 (1):
Est. S.E. t val. p
------ ------ -------- ------
0.22 0.10 2.16 0.03
3.29 Johnson-Neyman intervals: Improved
sim_slopes(m3, pred = Emergency, modx = AgeC, johnson_neyman =TRUE)
JOHNSON-NEYMAN INTERVAL
When AgeC is OUTSIDE the interval [-44.31, 1.06], the slope of Emergency is
p < .05.
Note: The range of observed values of AgeC is [-41.55, 34.45]
SIMPLE SLOPES ANALYSIS
Slope of Emergency when AgeC = -2.005465e+01 (- 1 SD):
Est. S.E. t val. p
------- ------ -------- ------
-7.51 7.61 -0.99 0.32
Slope of Emergency when AgeC = -1.705303e-15 (Mean):
Est. S.E. t val. p
------ ------ -------- ------
7.75 4.41 1.76 0.08
Slope of Emergency when AgeC = 2.005465e+01 (+ 1 SD):
Est. S.E. t val. p
------- ------ -------- ------
23.02 5.73 4.02 0.00
3.30 Johnson-Neyman intervals: Plot
johnson_neyman(m3, pred = Emergency, modx = AgeC, alpha = .05)
JOHNSON-NEYMAN INTERVAL
When AgeC is OUTSIDE the interval [-44.31, 1.06], the slope of Emergency is
p < .05.
Note: The range of observed values of AgeC is [-41.55, 34.45]
4 Miscellaneous
4.1 Main effects vs simple effects
Factorial ANOVA: Main effects + interaction
Main effect: Effect of a predictor averaged across the levels of the other predictors
Overall effect
Linear regression: Simple (main) effects + interaction
Simple effect: Effect of a predictor at a specific value of the other predictors
Conditional effect
4.2 Main effects vs simple effects
In general: Don’t use the term “main effects” for regression
“Simple slopes” for the actual simple slopes
“Lower order effects” for the coefficients (i.e., \(b_1\) and \(b_2\))
If interaction is significant
Lower order effects are conditional, so make sure to talk about them accordingly