Chapter 13, Table 12: Testing Polynomial Contrasts via SPSS Syntax

For the hypothetical data contained in Table 13.2, the linear and quadratic D variables were formed by making use of the appropriate coefficients from Appendix Table A.10. Because the eight participants were measured at three occasions, both a linear and a quadratic effect can be tested. The question of interest in this instance is: "is there a linear and/or quadratic trend exhibited by the group over time?" Recall that in the book (pages 646-647) it was shown that the D variables for linear and quadratic effects led to an omnibus F test of 19.148, which was a value previously obtained for the omnibus effect. Because the particular values chosen for the D variables do not matter (unless it leads to a linear combination of columns), we will focus only on the tests of the individual contrasts when analyzing the data given in Table 12.

Because columns one and two already represent the linear and quadratic effect respectively, all that needs to be done is to test mean of the column in order to determine if it differs from zero. The easiest way to do this is by making use of the T-Test procedure. Note that because we are interested in testing whether the linear and/or quadratic components are significantly different from zero, the /TESTVAL (i.e., the value of the null hypothesis) should be specified as zero. Below gives the code for the linear and then for the quadratic polynomial effect.

At this point clicking Run and then All will yield the results for both the linear and the quadratic component.

Note that a more direct way to carryout tests of polynomial trends is to specify polynomial contrasts directly from the raw data when carrying out a repeated measures analysis. Below shows the code for the raw data (i.e., Table 13.2) where the linear and quadratic components from Table 13.12 were derived. Note the option Polynomial specified on the /WSFACTOR line. This option leads to tests of the polynomials in the repeated measures analysis carried out with the GLM procedure.

At this point clicking Run and then All will yield the results of interest.