Data from Table 11.8, page 221.
data list list /a b errors. begin data. 1 1 1 1 1 4 1 1 0 1 1 7 2 1 13 2 1 5 2 1 7 2 1 15 3 1 9 3 1 16 3 1 18 3 1 13 1 2 15 1 2 6 1 2 10 1 2 13 2 2 6 2 2 18 2 2 9 2 2 15 3 2 14 3 2 7 3 2 6 3 2 13 end data.
Contrast of marginal means in a two-factor design: Numerical Example, top of page 246.
NOTE: The contrast must be specified across the a*b level.
glm errors by a b /lmatrix = 'a1 vs a3' a 1 0 -1 a*b .5 .5 0 0 -.5 -.5.
Custom Hypothesis Tests
Table 12.2, page 251. Simple effects of factor A over the levels of B.
NOTE: SPSS’s emmeans computes estimated marginal means. The compare(a) tests the differences across the levels of A.
glm errors by a b /emmeans tables(a*b) compare(a).
Estimated Marginal Means
a * b
Table 12.3, page 252. Analyzing the simple effect of the drug condition for the satiated animals (b=1) when there is concern about variance difference.
temporary. select if b=1. glm errors by a.
Numerical Example, page 257-258. Contrast for control vs. drug X for group 1 (b=1)
NOTE: This contrast statement is set up first by the contrast on A and then a contrast on the A*B interaction designating which level of B A is to be evaluated on.
glm errors by a b /lmatrix = 'a1 vs a2 at b1' a 1 -1 0 a*b 1 0 -1 0 0 0.
.
Custom Hypothesis Tests