SPSS Computing

Follow the SPSS menus for worked examples from the third edition of Designing Experiments and Analyzing Data. These instructions retain the original table numbers, screenshots and software terminology. An update for the fourth edition is planned. Some entries refer to syntax or to another example.

Read the SPSS syntax walkthroughs · Find syntax files and datasets · Book companion

Chapter 3. One-way between-subjects designs

Read the syntax notes for Chapter 3

Table 3.1 · One-sample t test

A One Sample t-test With SPSS Statistics

The data set analyzed to replicate Chapter 3 Table 1 consists of IQ (WISC-R) measurements on six hyperactive children. The question of interest is: “are hyperactive children in the school district brighter than the average student?” The mean IQ among the students is known to be 98. Thus, the null hypothesis in this situation is that the population mean for the hyperactive students is also 98.

To answer such a question we perform a one sample t-test specifying the null hypothesis as 98. Because a t-value squared with X degrees of freedom is equivalent to an F value with one numerator and X denominator degrees of freedom, our results are equivalent to those reported in the book. Recall that the observed F-value (with 1 and 5 degrees of freedom) in the book is 9, whereas our t-value (with 5 degrees of freedom) is 3.

1. Click Analyze, then Compare Means, then One Sample t-test.

The One-sample t-test procedure.
The One-sample t-test procedure.

2. From the pop-up menu within the One Sample t-test option, the Test Value represents the value of the null hypothesis of interest.

The value of 98 is specified because it is the null value being evaluated.
The value of 98 is specified because it is the null value being evaluated.

3. Click OK to obtain the results. 

Link to table 3.1 · Chapter index

Table 3.3 · One-way ANOVA

A One-Way ANOVA With SPSS Statistics

The following data set consists of three groups of 10 participants who were randomly assigned to one mood-induced condition. After viewing a video that was supposed to induce a certain mood state, the participants rated their mood state on several scales. The hypothesis of interest is whether the population group mean on Global Affect Rating differed among the groups.

To answer such a question we perform a one-way ANOVA with SPSS and obtain the results in Table 3.4.

1. Click Analyze, then Compare Means, then One-Way ANOVA.

 

The One-Way ANOVA procedure.
The One-Way ANOVA procedure.

 

2. From the pop-up menu within the One-Way ANOVA option, mood is the variable that is selected into the Dependent List, whereas cond represents the Factor.

Choose the dependent and the grouping variable.
Choose the dependent and the grouping variable.

3. Click OK to obtain the results. 

Link to table 3.3 · Chapter index

Tables 3.7 and 3.9 · Univariate descriptive statistics

Univariate Descriptive Statistics via SPSS point and click

The data set analyzed to replicate Chapter 3 Tables 7 and 9 consist of the number of drinks per week at a nine month follow-up for participants in five different therapy groups. The purpose of this data set is to assess the likelihood of the assumptions of the parametric statistical tests (in this case the assumptions of normality and homogeneity of variance). This data set is also of interest in order to explore potential transformations (e.g., the log transformation), such that the parametric assumptions may be more satisfied.

Here we perform some univariate descriptive statistics for each of the six variables in Tables 3.7 and 3.9 by “exploring” the data.

1. Click Analyze, then Descriptive Statistics, then Explore.

Univariate Descriptive Statistics
Univariate Descriptive Statistics

2. From the pop-up menu within Explore, drinks and lgdrinks are the variables that go into the Dependent List, whereas group is specified within the Factor List.

Dependent and Factor Selection
Dependent and Factor Selection

3. Click OK to Obtain the Results.

By default Explore outputs several other statistics that are not given in Tables 3.7 and 3.9. Note that the median for T1 CRA-D should be 10.98, not 11.89 as is listed in Table 3.9. In addition, the kurtosis for T2 CRA-D in the book should be 2.78, not 1.06 as is listed in Table 3.9.

Link to tables 3.7 and 3.9 · Chapter index

Chapter 4. Individual comparisons of means

Read the syntax notes for Chapter 4

Table 4.1 · Pairwise and complex comparisons of means

Performing Pairwise and Complex Comparisons of Means Through SPSS Point and Click

The hypothetical example shown in Table 4.1 consists of systolic blood pressure scores for 20 participants in four treatment groups for hypertension. The participants were randomly assigned to the four treatment groups of interest: drug therapy, biofeedback, diet, and combination. Note that for this example, there are not equal sample sizes in each group.

Our first hypothesis of interest is if the drug therapy and feedback groups differ in their effectiveness in treating hypertension. To test this hypothesis, we perform a simple pairwise comparison for the drug therapy and feedback groups. An illustrative example of the calculations for this analysis is shown in Table 4.2, while the output and contrast coefficients for this analysis are shown in Table 4.4.

1. Click Analyze, then Compare Means, then One-Way ANOVA.

Choose Compare Means, One-Way ANOVA
Choose Compare Means, One-Way ANOVA

2. Place the dependent variable (bloodpr) in the Dependent List box and the independent variable representing group status (cond) in the Factor box. Then click Contrasts underneath the Factor box.

Choose Dependent List and Factor
Choose Dependent List and Factor

3. Type the appropriate contrast coefficients (1, -1, 0, and 0 for the current example) into the Coefficients box one at a time. Click Add after typing each one. After the coefficients have been typed in, click Continue, and then click OK on theOne-Way ANOVA screen.

Select Contrasts
Select Contrasts

Our second hypothesis of interest is whether the average of the drug therapy, biofeedback, and diet groups differs from the combination group in effectiveness in treating hypertension. Using the data from Table 4.1, we test this hypothesis by performing a complex comparison of means by comparing the average of the means of the drug therapy, biofeedback, and diet groups to the mean of the combination group. An illustrative example of the calculations for this analysis is shown in Table 4.3, while the output and contrast coefficients for this analysis are shown in Table 4.4.

4. Click Analyze, then Compare Means, then One-Way ANOVA.

Choose Compare Means, One-Way ANOVA
Choose Compare Means, One-Way ANOVA

5. Place the dependent variable (bloodpr) in the Dependent List box and the independent variable representing group status (cond) in the Factor box. Then click Contrasts underneath the Factor box.

Determine Dependent List and Factor
Determine Dependent List and Factor

6. Type the appropriate contrast coefficients (1, 1, 1, and -3 for the current example) into the Coefficients box one at a time. Click Add after typing each one. After the coefficients have been typed in, click Continue, and then click OK on theOne-Way ANOVA screen.

Select Desired Contrasts
Select Desired Contrasts

Link to table 4.1 · Chapter index

Chapter 5. Multiple comparisons

Read the syntax notes for Chapter 5

Table 5.4 · Contrasts and multiple comparisons

Comparisons/Contrasts via SPSS point and click

The following data consists of blood pressure measurements for six individuals randomly assigned to one of four groups. Our purpose here is to perform four planed contrasts in order to discern if group differences exist for the chosen contrasts of interests.

At the time of this writing, SPSS does not seem to be able to compute the appropriate simultaneous confidence intervals. As is stated in the text, “the best one can do . . . is to obtain intermediate values that can then be used as input to appropriate formulas” for hand calculations.

1. From within the One-Way ANOVA menu (click Analyze, then Compare Means, then One-Way ANOVA), specify the dependent variable by moving sbp into the Dependent List. Because group is what distinguishes group membership, it should be moved into the Factor specification. In order to carryout comparisons/contrasts, click the Contrasts button on the One-Way ANOVA window.

Specify Dependent Variable and Contrasts
Specify Dependent Variable and Contrasts

2. After the One-Way ANOVA: Contrasts window pops up, the contrasts of interest can be defined by specifying the appropriate coefficients. Notice the contrast coefficients given at the top of Table 5.5. For the first contrast (Group 1 vs. Group 2), the contrasts are specified as [1, -1, 0, 0]. These coefficients are used in SPSS to identify which groups are compared. The contrasts are specified by clicking the appropriate whole number (corresponding to whether the particular mean is involved in the comparison) in the Coefficients box and then clicking Add, until all of the groups have a corresponding coefficient.

Once all groups have been accounted for by specifying the coefficients, additional contrasts are defined by clicking Next and specifying the next contrast of interest. The coefficients in the figure below identify the contrast two (Group 1 vs. Group 3) given at the top of Table 5.5.

Choose Contrasts
Choose Contrasts

3. One can continue specifying contrasts of interest by clicking Next after each contrast has been specified. After all contrasts of interest have been specified, clicking Continue on the One-Way ANOVA: Contrasts window and then OK on the One-Way ANOVA window will perform the requested ANOVA and the contrasts that were specified.

Note: clicking the Post Hoc button will allow one to form confidence intervals using a variety of critical values. However, the confidence intervals formed are for all pairwise comparisons, which may not be of interest for a particular question. For example, the question of interest in the present situation involved three pairwise comparisons and one complex comparison, for a total of four confidence intervals. The critical value using the Bonferroni criterion should then be alpha divided by 4. However, by performing the Bonferroni procedure via the Post Hoc procedure the alpha is divided by six, as there are six possible pairwise comparisons for four groups. In addition, the Post Hoc procedure is limited to pairwise comparisons and thus does not form confidence intervals for complex comparisons.

Link to table 5.4 · Chapter index

Chapter 6. Trend analysis

Read the syntax notes for Chapter 6

Table 6.1 · Trend analysis

Performing a Trend Analysis Through SPSS Point and Click

The data in Table 6.1 consist of recall scores for 24 children who have been randomly assigned to one of four experimental conditions where there are 6 children in each condition. The experimental conditions of interest are 1, 2, 3, and 4 minutes where the number of minutes is the amount of time the child is allotted to study a list of words before attempting to recall the words. The dependent variable (i.e., the recall scores) are the number of words the child is able to recall after a brief interference task.

The first hypothesis of interest is whether the number of words recalled is linearly related to the number of minutes spent studying. We first test this hypothesis by determining if the linear trend is statistically significant. Pages 252 and 253 are associated with this test.

1. Click Analyze, then Compare Means, then One-Way ANOVA.

Choose Compare Means, One-Way ANOVA
Choose Compare Means, One-Way ANOVA

2. Place the dependent variable (recall) in the Dependent List box and the quantitative factor (minutes) in the Factor box. Then click Contrasts underneath the Factor box.

Choose Dependent and Factor
Choose Dependent and Factor

3. Check the Polynomial box and specify the Degree as Linear. Click Continue and then OK on the One-Way ANOVA screen to obtain the results.

Choose Polynomial and Specify Degree as Linear
Choose Polynomial and Specify Degree as Linear

It is important to note that one might also be interested in estimating the slope corresponding to the linear trend within a trend analysis. If this is the case, one should type in the contrast coefficients that correspond to the linear trend instead of clicking the Polynomial box and specifying the Degree as linear. Of course, one must then remember to divide by the sum of the squared contrast coefficients in order to obtain the correct estimate of the slope.

Next, we are interested in determining if there is any nonlinearity present in the relationship between the number of words recalled and the amount of time spent studying. In fact, the analysis just presented supplies the statistical test of this hypothesis in the “Deviation” row under “Linear Term” in the output. The book demonstrates the results associated with this statistical test.

Finally, we are interested in determining if the quadratic or cubic components of the relationship between the number of words recalled and the amount of time spent studying are statistically significant. In order to obtain the results for these tests, simply specify the Degree of the polynomial as Cubic in Step 3 of the procedure shown above. It is important to note that the results for the linear, deviation from linear, quadratic, and cubic trends replicated by the procedures shown here are illustrated in Table 6.3.

Link to table 6.1 · Chapter index

Chapter 7. Two-way factorial designs

Read the syntax notes for Chapter 7

Table 7.1 · A 2 × 2 design treated as a one-way ANOVA

Two by Two Factorial Design Treated as a One-Way ANOVA via SPSS Point and Click

The following data consists of blood pressure measurements taken after the end of treatment for five individuals that were randomly assigned to one of four groups. The initial question of interest is whether there is a significant difference between any of the group means, that is, are all of the population group means equal or is there a difference somewhere.

1. As before, we can perform a one-way ANOVA via the One-Way ANOVA menu (click Analyze, then Compare Means, then One-Way ANOVA) to replicate the results given in Table 7.2. Score is specified as the dependent variable by moving it into the Dependent List. Because group is what distinguishes group membership, it should be moved into the Factor specification.

Choose Dependent and Factor
Choose Dependent and Factor

2. Click OK to produce the results of the one-way ANOVA given in Table 7.2.

Note: This analysis does not take into consideration the interaction between biofeedback and drug. For pedagogical reasons this data set is analyzed as though it were a one-way design with four groups. As is explained in the text, the concept of an interaction is important and should not be overlooked. Table 7.7 shows the results of the data from Table 7.5, where the interaction of biofeedback and drug is explicitly taken into consideration.

Link to table 7.1 · Chapter index

Table 7.5 · A 2 × 2 factorial ANOVA

Two by Two Factorial Design via SPSS Point and Click

The following data is a generalization of the blood pressure data given in Table 7.1 (as there are now three, rather than two, levels of the drug factor). In addition to assessing the likelihood of there being a biofeedback or a drug main effect, the interaction is explicitly taken into consideration. The results replicate those given in Table 7.7.

1. Rather than making use of the One-Way ANOVA procedure, it is necessary to use a more general procedure, namely that of the Univariate procedure under the General Linear Model Category (Click Analyze, then General Linear Model, then Univariate). At this point score is moved into the Dependent Variable box while feedback and drug and both moved into the Fixed Factor(s) box.

Specify Dependent Variable and Fixed Factors
Specify Dependent Variable and Fixed Factors

2. At this point clicking OK will produce the results of the two-by-three ANOVA given in Table 7.7.

Note: Because the Univariate procedure is a generalization of the One-Way ANOVA procedure, it too can be used to perform a one-way ANOVA. The advantages of using the One-Way procedure for one-way designs, however, comes from the additional options (e.g., contrasts and additional statistics) uniquely available from the One-Way menu.

Link to table 7.5 · Chapter index

Table 7.9 · Simple main effects (syntax note)

Examining Simple Main Effects via SPSS Point and Click

At the time of this writing, there does not seem to be a way to perform simple main effects via the point and click interface. However, making use of SPSS (or SAS) syntax allows one to perform tests of simple mean effects.

Link to table 7.9 · Chapter index

Table 7.11 · Interaction contrasts (syntax note)

Interaction Contrasts for Factorial Designs via SPSS Point and Click

At the time of this writing, there does not seem to be a way to perform interaction contrasts via the point and click interface. However, making use of SPSS (or SAS) syntax allows one to perform interaction contrasts.

Link to table 7.11 · Chapter index

Table 7.15 · Nonorthogonal factorial design

Nonorthogonal Factorial Designs via SPSS point and click

The following hypothetical salary data represents a nonorthogonal two-by-two factorial design. The first factor (sex) is crossed with college (degree or no degree). The primary question of interest is whether or not there is sex discrimination in terms of salary.

1. The analysis of the data given in Table 7.15 precedes in the typical way for factorial ANOVAs, that is, by making use of the SPSS univariate GLM procedure (recall the univariate procedure is available by clicking Analyze, then General Linear Model, and then Univariate). Because there are unequal sample sizes in the cells, the sums of squares can be decomposed in different ways (as formally explained in Tables 7.19 through 7.22).

Specify Dependent Variable and Fixed Factors
Specify Dependent Variable and Fixed Factors

2. At this point one can select the desired sums of squares by first clicking the Model button, and then clicking the Sums of Squares button (bottom left of the Univariate: Model window) to select the desired type of sums of squares.

Select Desired Sum of Squares
Select Desired Sum of Squares

3. At this point clicking Continue on the Univariate: Model window and then OK in the Univariate window will produce the desired results.

Note: for the effect entered first into the Fixed Factor(s) box can make a difference. For example, if the effect “A” is entered into the first effect entered into the Fixed Factor(s) box, the analysis actually performed is a “Type I sums of squares where ‘A’ is entered into the equation first.”

Link to table 7.15 · Chapter index

Table 7.23 · Nonorthogonal factorial design

Nonorthogonal Factorial Designs via SPSS point and click

The following data represent the relative effectiveness of three forms of psychotherapy for alleviating depression. Fifteen individuals were randomly assigned to one of three groups. After the fact, these individuals where placed into one of three categories based on the severity of their depression. Thus, this data set represents a 3 by 3 nonorthogonal factorial design with post hoc blocking.

1. The analysis of the data given in Table 7.23 precedes in the typical way for factorial ANOVAs, that is, by making use of the SPSS univariate GLM procedure (recall the univariate procedure is available by clicking Analyze, then General Linear Model, and then Univariate). Because there are unequal sample sizes in the cells, the sums of squares can be decomposed in different ways (as formally explained in Tables 7.19 through 7.22). For purposes of replicating the Type I sums of squares results, we will do the analysis twice, once with therapy entered into the Fixed Factor(s) box first and once with severity entered into the Fixed Factor(s) box first.

Specify Sum of Squares
Specify Sum of Squares

2. At this point clicking Continue on the Univariate: Model box and then OK on the Univariate box will yield the results. Because severity was entered first, this analysis gives the results to the “Type I—B entered first” summary in Table 7.25.

3. It can be seen below that therapy was entered into the Fixed Factor(s) box first. Thus, they results of this analysis correspond to those from the “Type I—A entered first” summary in Table 7.25.

Choose Sum of Squares
Choose Sum of Squares

4. At this point clicking Continue on the Univariate: Model box and then OK on the Univariate box will yield the results.

Note: We could also perform Type II and Type III sums of squares to replicate the rest of the results given in Table 7.25. This is, however, Unnecessary, as all that is required is to change the desired sum of squares in the Sum of squaresbox (lower left-hand side of the Univariate: Model box). It does not make a difference which effect is entered into the Fixed Factor(s) box for Type II and Type III sums of squares.

Link to table 7.23 · Chapter index

Chapter 8. Higher-order factorial designs

Read the syntax notes for Chapter 8

Table 8.12 · Three-way ANOVA

Performing a Three-Way ANOVA Through SPSS Point and Click

The data in Table 8.12 consist of blood pressure scores for 72 participants. Three categorical independent variables: the presence and absence of biofeedback (biofeed), drug X, Y, or Z (drug), and diet absent or present (diet) have beenfactorially combined to form a 2 x 3 x 2 design where each person contributes one blood pressure score to one of the 12 different experimental conditions. For this example, there are 6 participants in each group.

First, the omnibus tests of interest will be computed to determine if there are differences among the groups on the mean level of blood pressure. Table 8.14 illustrates the results replicated here.

1. Click Analyze, then General Linear Model, then Univariate.

Choose Analyse, General Linear Model, Univariate
Choose Analyse, General Linear Model, Univariate

2. Place the dependent variable (bp) in the Dependent Variable box and the group factors (biofeed, drug, and diet) in the Fixed Factor(s) box. Then click OK.

Choose Dependent Variable and Fixed Factors
Choose Dependent Variable and Fixed Factors

As of this writing, more specific tests of group mean comparisons in the context of multifactor ANOVAs can only be carried out directly in SPSS with the MANOVA procedure through syntax. Please refer to the SPSS syntax for these analyses.

Link to table 8.12 · Chapter index

Chapter 9. ANCOVA and blocking

Read the syntax notes for Chapter 9

Table 9.1 · Analysis of covariance

Analysis of Covariance via SPSS point and click

The following data represent a pre-post design, where a training program designed to assist people in losing weight is evaluated. An initial measure of weight is collected to use as a baseline measure (specifically as a covariate in the present analysis) and then participants are randomly assigned to one of two groups. At the end of the training program another measure of weight is obtained. The question of interest is: “did the participants who received the treatment lose more weight than those that were assigned to the wait-list control group?”

The analysis the data given in Table 9.1 is done by making use of the SPSS Univariate ANOVA procedure (UNIANOVA). The difference in this design compared to those examined previously is that a covariate is included in the analysis.

1. As before, we will begin by moving the grouping factor, group, into the Fixed Factor(s) box, and the dependent variable, y, into the Dependent Variable box. Because a covariate is also included in the analysis, the covariate, x, is moved into theCovariant(s) box.

Specify Dependent Variable, Fixed Factor, and Covariate
Specify Dependent Variable, Fixed Factor, and Covariate

2. Because we are also interested in the parameter estimates of the intercept and slope, and not just the F and probability values associated with the effects, it will be necessary to add an additional option. By clicking on the Options button in theUnivariate box, the option for Parameter estimates can be “checked.”

Add Additional Option by Checking Parameter Estimates
Add Additional Option by Checking Parameter Estimates

3. At this point, clicking in the box for Parameter estimates and then clicking Continue on the Univariate: Options box and followed by OK on the Univariate box will yield the results of interest.

Link to table 9.1 · Chapter index

Table 9.7 · Adjusted means in ANCOVA

Analysis of Covariance and Estimating Adjusted Means via SPSS point and click

The following data represent a three group pre-post design, where 30 depressives were randomly assigned to one of three conditions. The primary question of interest is: “do individuals in some groups change more on their measures of depression than do individuals in other groups?”

The analysis data given in Table 9.7 begins by making use of the SPSS Univariate ANOVA procedure (UNIANOVA). The difference in this design compared to those examined previously is that a covariate is included in the analysis.

1. As before, we will begin by moving the grouping factor, group, into the Fixed Factor(s) box, and the dependent variable, y, into the Dependent Variable box. Because a covariate is also included in the analysis, the covariate, x, is moved into the Covariant(s) box.

Choose Dependent Variable and Fixed Factors
Choose Dependent Variable and Fixed Factors

2. Because we are also interested in the parameter estimates of the intercept and slope, and not just the F and probability values associated with the effects, it will be necessary to add an additional option. By clicking on the Options button in theUnivariate, the option for Parameter estimates can be “checked.” Further, we are also interested in the adjusted means of the grouping factor cond. By highlighting cond in the Factor(s) and Factor Interactions box and moving it over to theDisplay Means for box, the estimated means given (or conditional on) the covariate are obtained. These adjusted means correspond to the values given in Table 9.8 of the text.

Add Additional Option
Add Additional Option

3. At this point clicking Continue on the Univariate: Options box and then OK on the Univariate box will yield the results of interest. Note that at the time of this writing Tables 9.8 and 9.10 cannot seem to be replicated via the SPSS Univariateprocedure.

Link to table 9.7 · Chapter index

Table 9.11 · Randomized block design

Analyzing Randomized Block Design via SPSS point and click

The question of interest in the present situation assumes that there are three blocks of elderly participants, six per block. The elderly participants are sorted into the three blocks as a function of their age. The purpose of the study was to assess the effect of age on motor control, measured by the number of errors on a certain task (where there were three tasks). The goal here is to replicate the results from the top portion of Table 9.12 (At this point performing the ANOVA and the ANCOVA, the results of which are included in Table 9.12, should be straightforward.).

The results given in the upper portion of Table 9.12 can be obtained by making use of the SPSS Univariate ANOVA procedure (UNIANOVA). Because the task and the blocks are both treated as different factors, the analyses proceeds as a two factor design that includes the interaction.

1. As before, we will proceed by clicking Analyze, then General Linear Model, and then Univariate. At this point the task and the block factors are moved into the Fixed Factor(s) box, and y is moved into the Dependent Variable box.

Determine Dependent Variable and Fixed Factors
Determine Dependent Variable and Fixed Factors

2. At this point clicking OK on the Univariate box will yield the results of the randomized blocks design given in the top portion of Table 9.12.

Note: if one wanted to replicate the ANOVA results given in the middle portion of Table 9.12, the block factor would simply need to be removed from the Fixed Factor(s) box. Furthermore, if one wanted to replicate the ANCOVA results given in the lower portion of Table 9.12, the block factor would be removed from the Fixed Factor(s)box and the x variable would be moved into the Covariate(s) box.

Link to table 9.11 · Chapter index

Chapter 10. Random and nested factors

Read the syntax notes for Chapter 10

Table 10.5 · Mixed-model ANOVA

Performing a Mixed Model ANOVA Through SPSS Point and Click

The data in Table 10.5 consist of simulated ACT scores from 40 participants where 10 participants were selected from each of four schools. It is assumed that the schools are randomly selected from a population of schools in America in order to generalize the results found. Two schools (and thus, 20 participants) are randomly assigned to the computer-based ACT training program, while the other two schools are randomly assigned to the standard paper-and-pencil program in order to assess the effectiveness of these different types of programs.

The primary hypothesis of interest is whether the standard paper-and-pencil and computer-based ACT training programs differ in effectiveness. The following procedure generates the output to assess this hypothesis. It is important to note that, as of this writing, SPSS through the point and click procedure does not provide the correct statistical test for the main effect of the random factor in this situation as the denominator is incorrectly specified as the mean square for the interaction instead of the mean square error. The test of the main effect of the fixed factor (and the test of the interaction effect) is correct in this situation, however. See the SPSS syntax for this table to obtain the correct statistical tests for all the omnibus effects of potential interest.

1. Click Analyze, then General Linear Model, then Univariate.

Choose Univariate
Choose Univariate

2. Place the dependent variable (act), the fixed factor (a), and the random factor (b) in the appropriate boxes. Click OK to obtain the results.

Determine Dependent Variable, Fixed Factor, and Random Factor
Determine Dependent Variable, Fixed Factor, and Random Factor

Link to table 10.5 · Chapter index

Table 10.9 · Trainees nested within gender (syntax note)

The data in Table 10.9 consist of general severity rating scores from 24 participants after each participant receives therapy from one of 6 therapist trainees. Three of the trainees are males while the other three trainees are females. In this sense, the trainees are nested within their particular gender.

The hypothesis of primary interest is determining the effect of gender on severity score ratings. As of this writing, there is no procedure using the SPSS point and click method that provides the correct statistical tests for the gender effect. One can utilize the Linear Mixed Model procedure in SPSS to obtain correct results for the test of the trainee within gender effect, but cannot obtain the correct test for the gender effect through point and click. Thus, the appropriate method used to perform an ANOVA on nested data in SPSS is to use the syntax. See the SPSS syntax to obtain the appropriate statistical tests for Table 10.9.

Link to table 10.9 · Chapter index

Chapter 11. One-way within-subjects designs

Read the syntax notes for Chapter 11

Table 11.1 · Univariate repeated measures

Repeated Measures (Univariate Approach) via SPSS point and click

For the present data set, six individuals were observed under two different conditions. The question of interest is: “does the mean of the scores in Condition 1 differ from the mean of the scores in Condition 2?”

1. The analysis of the data (results of which are given in Table 11.3) begin by clicking Analyze, and then, after moving to the General Linear Model menu, clicking Repeated Measures. When the Repeated Measures Define Factor(s) box comes up, the number of levels (in this particular case) should be identified as “2” (because there are two levels of the repeated factor). The Within-Subject Factor Name can be modified appropriately (in the screen shot below it has been named cond.)

Click Repeated Measures, and Set to “2”
Click Repeated Measures, and Set to “2”

2. After naming the within subject factor and specifying the number of levels of the repeated factor, the Add button should be clicked. Clicking the Add button moves the within subject factor into the large white box, which then allows the factor to be defined. The factor is defined by clicking the Define button. After the Define button is clicked, a new menu is displayed that allows each of the factors to be defined by the particular column where the particular level of the factor is contained. Below the Repeated Measures box is displayed where ycond1 was defined as the first level of the cond factor. Moving ycond2 over to the second cond variable on the Within-Subjects Variables side will allow the analysis to proceed by clicking OK.

Specify Within-Subjects Variables
Specify Within-Subjects Variables

Note: there are several analyses performed and output by default. The one that is currently of interest is the univariate, specifically the one Tests of Within Subjects Contrasts.

Link to table 11.1 · Chapter index

Table 11.4 · Data note

No analyses are conducted for this data set.

Link to table 11.4 · Chapter index

Table 11.5 · Univariate repeated measures

Repeated Measures (Univariate Approach) via SPSS point and click

For the present data set, 12 children were each observed four times over an 18 month period. The dependent variable is the age-normed general cognitive score on the McCarthy Scales of Children’s Abilities. Interest is in determining if the children were sampled from a population where growth in cognitive ability is more rapid or less rapid than average.

1. The analysis of the data (results of which are given on page 539) begin by clicking Analyze, and then, after moving to the General Linear Model menu, clicking Repeated Measures. When the Repeated Measures Define Factor(s) box appears, the number of levels (in this particular case) should be identified as “4” (because we there are four levels of the factor month). The Within-Subject Factor Name can be modified for the particular problem; in the screen shot below it has been named months.

Determine Levels and Within-Subject Factor Name
Determine Levels and Within-Subject Factor Name

2. After naming the within subject factor and specifying the number of levels of the repeated factor, the Add button should be clicked. Clicking the Add button moves the within subject factor (months) into the large white box, which then allows the factor to be defined. The factor is defined by clicking the Define button. After the Define button is clicked, a new menu is displayed that allows each of the factors to be defined by the particular column where the particular level of the factor is contained. Each of the column names (corresponding to measured timepoints in the present case) should be moved to the Within-Subjects Variables box by highlighting the particular month in the left box and clicking the move button so that the month is moved to the right box, thus defining the particular level with the month it corresponds with. After defining each of the four months to the appropriate level, clicking OK allows the analysis to proceed (the result is given on page 539).

Choose Within-Subject Variables
Choose Within-Subject Variables

Note: there are several analyses performed and output by default. The one that is currently of interest is the Sphericity Assumed result contained in the Tests of Within Subjects Effects output box. Although each of the four results contained in the Tests of Within Subjects Effects output box are the same in this instance, in general this will not be the case, as is explained in the second half of Chapter 11. Note that the adjusted F tests (which will soon be of interest) are given in the Tests of Within Subjects Effects output box.

Link to table 11.5 · Chapter index

Table 11.19 · Intraclass correlations

Intraclass Correlations via SPSS point and click

For the present (hypothetical) data set (taken from Shrout and Fleiss, 1979) consists of six participants who are ranked by four judges.

As is pointed out on page 563, the structure of Table 11.19 is analogous to that of Table 11.5 (repeated measures). However, notice that in the data file that the data are entered differently. For the repeated measures design (e.g., 11.5), each row corresponded to a different participant, while each column corresponded with another measurement. The main reason for the difference in how the data was entered is mainly because of the procedures used to analyze the data. SPSS and SAS allow repeated measures data to be entered in a “participants by occasions” fashion, whereas in order to get the appropriate mean squares to carryout the intraclass correlations for the data given in Table 11.19, a mixed-effects (one fixed factor and one random factor) ANOVA needs to be performed. It should be pointed out that the repeated measures data could have been entered in a similar fashion as Table 19 and 20, however, the powerful repeated measures procedures built into SPSS and SAS would not be directly utilized.

Because the intraclass correlations, as given towards the end of Chapter 11, are not directly obtainable via SPSS or SAS, mixed-effects ANOVAs are utilized such that the appropriate mean squares can be inserted into the appropriate formulas. Note that we obtain the mean squares by way of a mixed-effects ANOVA, but either a random-effects or a fixed-effects ANOVA could have been utilized, because the corresponding mean squares are equivalent in each situation (the F ratios are what is different, which is not of interest in the present situation).

1. The mixed-effects ANOVA proceed by clicking Analyze, and then, after moving to the General Linear Model menu, clicking Univariate. At this point rating should be moved into the Dependent Variable slot, judges into the Fixed Factor(s) slot, and subject into the Random Factor(s) slot.

Specify Dependent Variable, Fixed Factor, and Random Factor
Specify Dependent Variable, Fixed Factor, and Random Factor

2. By clicking OK the analysis is performed and the mean squares can be utilized via hand calculations following the formulas given towards the end of Chapter 11.

Link to table 11.19 · Chapter index

Table 11.20 · Intraclass correlations (related example)

The analysis of the data contained in Table 11.20 is carried out in exactly the same manner as was the data contained in Table 11.19. Thus, a mixed effects ANOVA model is performed in order to obtain the mean squares which are then used in the formulas give towards the end of Chapter 11.

See Table 11.19 for the related procedure.

Link to table 11.20 · Chapter index

Chapter 12. Higher-order within-subjects designs

Read the syntax notes for Chapter 12

Table 12.1 · Two within-subjects factors

Performing an ANOVA with Two Within-Subjects Factors Through SPSS Point and Click

The data in Table 12.1 consist of reaction time scores for 10 participants where each participant contributes 6 scores to the analysis. In particular, each participant is exposed to each of 6 experimental conditions, which are obtained by factoriallycombining angle (0, 4, and 8) with noise (absent and present).

First, the tests of interest are the omnibus tests within the two-factor within-subjects ANOVA.

1. Click Analyze, then General Linear Model, then Repeated Measures.

Choose Repeated Measures
Choose Repeated Measures

2. Click Add after specifying the name and the number of levels for each of the two repeated measures factors. After completing this, click Define.

Choose Number of Levels and Click Define
Choose Number of Levels and Click Define

3. Place the specific experimental conditions under Within-Subject Variables. Make sure that the conditions correspond with the appropriate levels of each within-subjects factor (i.e., all absent conditions are under the same number for noise, all 4 degree angles are under the same number for angle, etc.). After completing this, click OK to obtain the results.

Determine Within-Subject Variables
Determine Within-Subject Variables

It is important to note that by default the test of the quadratic trend (using a separate error term) of the angle main effect is contained in the output produced from the above procedure. This result replicates the result for the quadratic trend using a separate error term found on page 580. Also, one will find the significance tests for the univariate mixed-model approach that have been adjusted by the estimates of epsilon. These tests correspond to the results shown in Table 12.13

While obtaining the omnibus tests is relatively easy through the point and click option in SPSS, as of this writing, more specific tests of interest that correspond to this numerical example cannot be carried out through the SPSS point and click option. For more specific group mean comparisons, refer to the SPSS syntax for this example.

Link to table 12.1 · Chapter index

Table 12.15 · A split-plot design

Performing an ANOVA with One Within-Subject Factor and One Between Subject Factor (A Split-Plot Design) Through SPSS Point and Click

The data in Table 12.15 consist of reaction time scores for 10 young participants where each participant contributes 3 scores to the analysis. In particular, each participant is exposed to each of 3 experimental conditions, angle (0, 4, and 8). For the current analyses Table 12.15 is appended to Table 12.7, which contains reaction time scores for 10 old participants for angles of 0, 4, and 8. Thus, it is necessary to perform some data management before analyzing the data.

1. After opening Table 12.15 in SPSS, click Data, Merge Files, and then Add Cases.

Choose Merge Files, Add Cases
Choose Merge Files, Add Cases

2. Next, read in the file for Table 12.7 and then press OK on the Add Cases from … screen. The final step that is necessary to perform the split-plot ANOVA is to add a fourth column to the file for the between-subjects factor, age (with levels of old and young). For the current analysis, it is assumed that old is coded 1 and young is coded 2 for this variable.

Now we move on to performing the split-plot ANOVA. The first tests of interest here are the omnibus tests within the split-plot ANOVA.

3. Click Analyze, then General Linear Model, then Repeated Measures.

Choose General Linear Model, Repeated Measures
Choose General Linear Model, Repeated Measures

4. Click Add after specifying the name and the number of levels for the repeated measures factor, angle. After completing this, click Define.

Click Add, then Define
Click Add, then Define

5. Place the specific experimental conditions under Within-Subject Variables. Also, place the between-subjects variable (age) in the Between-Subjects Factor box. After completing this, click OK to obtain the results.

Choose Within-Subject Variables, then Click OK
Choose Within-Subject Variables, then Click OK

While obtaining the omnibus tests is relatively easy through the point and click option in SPSS, as of this writing, more specific tests of interest that correspond to this numerical example cannot be carried out through the SPSS point and click option. For more specific group mean comparisons, refer to the SPSS syntax for this example.

Link to table 12.15 · Chapter index

Table 12.21 · A Latin square design

Performing an ANOVA on a Latin Square Design Through SPSS Point and Click

The data in Table 12.21 consist of hypothetical aggressiveness scores for 6 monkeys who have been exposed to three types of drugs (A, B, and C). In order to control for potential order effects, a Latin square design is utilized. In particular, two randomly constituted squares are formed with three monkeys randomly assigned to each square and also randomly assigned to the particular row of the square that assigns the order that they are exposed to treatment

The hypothesis of primary interest is whether the drugs differ in their effectiveness in controlling aggression in the monkeys. Thus, the test of the condition main effect is of primary interest. The current procedure reproduces the results for test of the condition main effect shown on page 615.

1. Click Analyze, then General Linear Model, then Univariate.

Choose General Linear Model, Univariate
Choose General Linear Model, Univariate

2. Place the dependent variable (dv) in the Dependent Variable box, time and cond in the Fixed Factor(s) box, and subject in the Random Factor(s) box.

Determine Dependent Variables, Fixed Factors, and Random Factors
Determine Dependent Variables, Fixed Factors, and Random Factors

3. Click Model in the upper right hand corner of the Univariate screen, and then click Custom in order to specify the model of interest. Since the analysis of Latin square designs does not involve interactions, under the Build Terms box in the middle of the screen click on Main Effects. Then place time, cond, and subject in the Model box on the right hand side of the Univariate:Model box. Click Continue and then OK.

Click Custom to Specify the Model of Interest
Click Custom to Specify the Model of Interest

Link to table 12.21 · Chapter index

Chapter 13. Multivariate repeated measures

Read the syntax notes for Chapter 13

Table 13.1 · Multivariate repeated measures

Repeated Measures (Multivariate Approach) via SPSS point and click

For the hypothetical data contained in Table 13.1, five participants were measured at two occasions. The question of interest is: “is there a difference between the mean of Time 1 and Time 2 scores?”

The analysis of the data (results of which are given on page 626) begin as they did in Chapter 11 for the univariate approach to repeated measures. Recall that in Chapter 11 there was a large amount of output and at that time the only results of interest was the Tests of Within Subjects Effects. Because we are now interested in the results from the multivariate approach, the results of interest now will be those listed in the Multivariate Tests table.

1. The results of interest are obtained by clicking Analyze, and then, after moving to the General Linear Model menu, clicking Repeated Measures. When the Repeated Measures Define Factor(s) box appears, the number of levels (in this particular case) should be identified as “2” (because there are two levels of time). The Within-Subject Factor Name can be modified; in the screen shot below it has been named time. After naming the within subject factor and specifying the number of levels of the repeated factor, the Add button should be clicked. Clicking the Add button moves the within subject factor (months) into the large white box, which then allows the factor to be defined.

Choose Factor Name and Number of Levels
Choose Factor Name and Number of Levels

2. The factor is defined by clicking the Define button. After the Define button is clicked, a new menu is displayed that allows each of the factors to be defined by the particular column where the data from the particular level of the factor is contained. Each of the column names (corresponding to the two measured timepoints in the present case) should be moved to the Within-Subjects Variables box by highlighting the particular column in the left box and clicking the move button so that time is moved to the right box, thus defining the particular level of time.

Determine Within-Subject Variables
Determine Within-Subject Variables

3. After defining each of the two values of time, clicking OK allows the analysis to proceed (the results of which are given on page 626). Recall that the Repeated Measures procedure in SPSS performs both multivariate as well as univariate procedures. It is important to realize which technique is of interest when sorting through the output.

Link to table 13.1 · Chapter index

Table 13.2 · Three measurement occasions (related example)

Repeated Measures (Multivariate Approach) via SPSS point and click

For the hypothetical data contained in Table 13.2, eight participants were measured at three occasions. The question of interest is: “Is there a population mean difference between across Time 1, Time 2, and Time 3 measurement occasions?”

The analysis of the data proceed in exactly the same way as it did for the data given in Chapter 13 Table 1 (as well as it did for the repeated measures given in Chapter 11). For this reason step-by-step instructions are not given for this data set.

See Table 13.1 for the related procedure.

Link to table 13.2 · Chapter index

Table 13.5 · McCarthy data (related example)

Repeated Measures (Multivariate Approach) via SPSS point and click

The McCarthy data contained in Table 13.5, which was previously analyzed in Table 11.5, is now analyzed using the multivariate approach to repeated measures.

The analysis of this data proceed in exactly the same way as it did for the data given in Chapter 13 Table 1 (as well as it did for the repeated measures given in Chapter 11). For this reason step-by-step instructions are not given for this data set.

See Table 13.1, Table 11.5 for the related procedure.

Link to table 13.5 · Chapter index

Table 13.12 · Polynomial contrasts

Testing Polynomial Contrasts via SPSS point and click

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.

1. The easiest way to do this is by clicking Analyze, and then, after moving to the Compare Means menu, clicking One-Sample T Test. Each of the effects (linear and quadratic) needs to be done individually. This is done by moving the column representing the effect of interest, we first analyze the linear trend, by moving it into the Test Variable(s) box. Note that the Test Value should be zero (which it is by default).

Determine Test Variables
Determine Test Variables

2. After moving the linear trend to the Test Variable(s) box, clicking OK will produce the answer given on page 648. Note that the results from SPSS produce a t value. The results given in the text are in terms of F. Squaring the t value of 3.969 will yield the F value of 15.75 given on page 648.

3. Follow the same procedure for the quadratic effect will produce the test of the quadratic effect, as illustrated below:

Repeat Procedure
Repeat Procedure

4. After moving the quadratic particular trend to the Test Variable(s) box, clicking OK will produce the results.

Note: a more direct way to carryout tests of polynomial trends is to specify polynomial contrasts from within the Repeated Measures menu. When defining the levels of the repeated factor (as we did early in this chapter), the Contrastsbutton can be clicked (bottom left-hand side of the dialog box) and then Polynomial specified. This requires directly inputting the raw data (rather than the linear composite from making use of the coefficients in Appendix Table A. 10).

Link to table 13.12 · Chapter index

Chapter 14. Higher-order multivariate designs

Read the syntax notes for Chapter 14

Table 14.1 · Higher-order repeated measures

Higher Order Designs for Repeated Measures (Multivariate Approach) via SPSS Point and Click

For the hypothetical data contained in Table 14.1, a perceptual psychologist studying the visual system was interested in determining the extent to which interfering visual stimuli slow the ability to recognize letters. Participants are brought into a laboratory where they are seated in front of a tachistoscope. Variations in the presentations of letters is examined with interest being on the reaction time for target letters presented either in the center of the screen or off centered with and without “noise” accompanying the target letters.

1. The analysis of the data given in Table 14.1 begins by making use of the Repeated Measures procedure. As before, the Repeated Measures procedure can be utilized by first clicking Analyze, then clicking General Linear Model and then clicking the Repeated Measures tab. Once the Repeated Measures Define Factor(s) menu is displayed, the two factors must be defined. This is done by defining the first factor as noise and specifying “2” levels of the factor and then clicking Add and defining angle with “2” levels which also has two levels (of course these levels can be defined in the reverse order). Once Add has been clicked again (so as to add angle to the analysis), clicking Define allows the particular columns of the data to be correctly specified into the SPSS system.

Define Factors
Define Factors

2. To correctly define the data, the columns of the data are moved to the Within-Subjects Variables box with particular attention on correctly defining the levels of the factors. In this case because we specified the first factor as noise, this factor “changes slowest” in the specification of the Within-Subjects Variables. This is illustrated in the screen shot below because within the first level of noise (absent), the angle changes. Because noise was specified as the first (“slowest changing”) factor and then we specified angle (“fastest changing”) factor, the order of the specification should be absent zero degree, absent eight degree, present zero degree, and finally present eight degree. This can be seen below:

Specify Within-Subject Variables
Specify Within-Subject Variables

3. At this point clicking OK will yield the results of interest. By default, SPSS performs several types of analyses. At the present time the only output of interest is contained in the Multivariate Tests table. The results in this table match those given on page 686 of the text.

 

Link to table 14.1 · Chapter index

Table 14.3 · D variables for repeated measures

Chapter 14, Table 3: D Variables for Higher Order Designs for Repeated Measures (Multivariate Approach) via SPSS Point and Click

For the hypothetical data contained in Table 14.1, Table 14.3 gives the set of D variables. The D variables are subsequently used to analyze the data given in Table 14.1. Recall that we analyzed the data contained in Table 14.1 directly using SPSS without (explicitly) forming D variables. Although obtaining the results of the main effects is easily accomplished using the data directly, forming and then analyzing D variables directly also has its benefits (which are delineated in the chapter). Below we analyze the D variables contained in Table 14.3. As expected, our results will match those previously obtained when we analyzed the raw data (i.e., skipping the step of explicitly forming D variables). However, the method to be outlined here provides a different way to accomplish the same goal. We will soon see that analyzing the data in the method to be explained below potentially offers unique advantages.

1. To begin we make use of the Multivariate procedure rather than the Repeated Measures procedure as we previously did. We do this because we have already taken into account the “repeated” part when we formed the D variables. At this point we want to see if the D variables differ from zero. Begin by clicking Analyze, and then General Linear Model, and then clicking Multivariate. At this point we move each of the D variables to the Dependent Variables box as shown below:

Move each D Variables to the Dependent Variables box
Move each D Variables to the Dependent Variables box

2. Clicking OK will yield the results of the analysis and match those given on page 686 in the text.

Link to table 14.3 · Chapter index

Table 14.4 · Higher-order repeated measures

Chapter 14, Table 4: Higher Order Designs for Repeated Measures (Multivariate Approach) via SPSS Point and Click

For the hypothetical data contained in Table 14.4 adds a level of the angle factor (specifically the 4 degree angle) to the data contained in Table 14.1. Recall that a perceptual psychologist studying the visual system was interested in determining the extent to which interfering visual stimuli slow the ability to recognize letters. Participants were brought into a laboratory where they were seated in front of a tachistoscope. Variations in the presentations of letters is examined with interest being on the reaction time for target letters presented either in the center of the screen or off centered with and without “noise” accompanying the target letters.

1. The analysis of the data given in Table 14.4 begins in exactly the same way as did the data contained in Table 14.1. As before, the Repeated Measures procedure can be utilized by first clicking on Analyze, then clicking General Linear Model and then clicking the Repeated Measures tab. Once the Repeated Measures Define Factor(s) menu is displayed, the two factors must be defined. This is done by defining the first factor as noise and specifying “2” levels of the factor and then clicking Add and defining angle with “3” levels (of course these levels can be defined in the reverse order). Once Add has been clicked again (so as to add angle to the analysis), clicking Define allows the particular columns of the data to be correctly specified into the SPSS system.

Determine Factors and Number of Levels
Determine Factors and Number of Levels

2. To define the data, the columns of the data are moved to the Within-Subjects Variables box with particular attention on correctly defining the levels of the factors. In this case, because we specified the first factor as noise, noise is the factor that “changes slowest” in the specification of the Within-Subjects Variables. This is illustrated in the screen shot below because within the first level of noise (absent), there are three different angles. Because noise was specified as the first (“slowest changing”) factor and then we specified angle second (“fastest changing”) factor, the order of the specification should be absent zero degree, absent four degree, absent eight degree, present zero degree, present four degree, and finally present eight degree. This can be seen below:

Ensure correct order of Within-Subject Variables
Ensure correct order of Within-Subject Variables

3. At this point clicking OK will yield the results of interest. By default, SPSS performs several types of analyses. For the present analysis, the only output of interest is contained in the Multivariate Tests table. The results contained in theMultivariate Tests table match those given on page 694 in the text. At the present time there does not seem to be any way to perform tests of simple effects directly from the Repeated Measures point and click interface using Table 11.4. However, these tests of simple effects and confidence intervals around them can be done with SPSS Point and Click and SPSS Syntax by using the D variables contained in Table 11.5. Thus, the examples provided with Table 11.5 show how the remaining analyses of interest can be formed.

Link to table 14.4 · Chapter index

Table 14.5 · D variables for repeated measures

Chapter 14, Table 5: D Variables for Higher Order Designs for Repeated Measures (Multivariate Approach) via SPSS Point and Click

For the hypothetical data contained in Table 14.4, Table 14.5 gives an appropriate and substantively interesting set of D variables. The D variables (rather than the raw data itself) is used because of the benefits and flexibility gained from analyzing the D variables directly (rather than indirectly as we did with the Table 14.4 data).

1. Because the data of Table 14.5 is already in the form of D variables, rather than using the Repeated Measures procedures, the Multivariate procedures themselves can be used. Recall the Multivariate procedure can be used by clickingAnalyze, and then General Linear Model, and then by specifying Multivariate. Once the Multivariate procedure window opens, each of the D variables should be moved into the Dependent Variables box as follows:

Move D Variables to the Dependent Variables Box
Move D Variables to the Dependent Variables Box

2. By clicking on the Options button, additional nonstandard options can be specified. Because D variables can be formed with substantively interesting questions in mind, it is very likely that we are interested in the parameter estimates and confidence intervals for the D variables. When this is the case clicking on the Options button and then specifying Parameter Estimates by clicking in the Parameter Estimates box (so as to put a check mark there), will tell SPSS that we want to estimate the parameters and form confidence intervals for them.

Specify Parameter Estimates
Specify Parameter Estimates

3. After the Parameter Estimates box has been check, clicking Continue and then OK on the Multivariate menu will yield the results of interest (specifically the omnibus main effects and interaction as well as the specific contrasts specified by the D variables). Although we do not illustrate it here, forming other sets of D variables and following the procedures outlined will lead to answers of other (potentially) interesting questions. For example, the 11th D variable of the chapter tests the difference between the eighth degree and the zeroth degree conditions when noise is present. Although we do not form and test such a D variable here, with the methods we have illustrated, such a D variable could easily be formed and analyzed.

Link to table 14.5 · Chapter index

Table 14.8 · One within-subjects and one between-subjects factor

Chapter 14, Table 8: One-Within One-Between (Multivariate Approach) via SPSS Point and Click

For the hypothetical data contained in Table 14.8, a perceptual psychologist is interested in age differences (“young” and “old”) in reaction time on a perceptual task. In addition, the psychologist is also interested in the effect of angle (zerodegrees off centered and eight degrees off centered). The question of interest is to see if there are is a main effects of age, a main effect of angle, and an interaction of the two.

The analysis of the data given in Table 14.8 begins by making use of the Repeated Measures procedure. As before, the Repeated Measures procedure can be utilized by first clicking on Analyze, then clicking General Linear Model and then clicking the Repeated Measures tab. Once the Repeated Measures Define Factor(s) menu is displayed, we must define the within-subjects factors. We do this by specifying a name of the factor (we use angle) and the “2” for the number of levels. After we click Add to add the factor we click Define.

Define Within-Subject Factors
Define Within-Subject Factors

2. One the Repeated Measures box comes up, we specify angle0 and angle8 as our two within subject factors. This time, however, we also have a between subject factor. The between subject factor, group in this case, is moved to the Between-Subjects Factor(s) box.

Determine Between-Subject and Within-Subject Factors
Determine Between-Subject and Within-Subject Factors

3. After clicking OK the results will be produced. Note that, as before, for the within-subject effects both the univariate and the multivariate approaches are performed by default. Here we are only concerned with the multivariate approach. The results obtained match those given in the text on pages 707 (for the between-subject main effect), 709 (for the interaction), and 712 (for the within-subject main effect).

Link to table 14.8 · Chapter index

Table 14.10 · One within-subjects and one between-subjects factor

Chapter 14, Table 10: One-Within One-Between (Multivariate Approach) via SPSS Point and Click

The hypothetical data contained in Table 14.10 contains an additional level of angle (four degrees) that was not considered in Table 14.8.

1. The basic analysis of the data given in Table 14.10 begins by making use of the Repeated Measures procedure. As before, the Repeated Measures procedure can be utilized by first clicking on Analyze, then clicking General Linear Model and then clicking the Repeated Measures tab. Once the Repeated Measures Define Factor(s) menu is displayed, we must define the within-subjects factors. We do this by specifying a name of the factor (we use angle) and the “3” for the number of levels. After we click Add to add the factor we click Define.

Define Within-Subject Factors
Define Within-Subject Factors

2. One the Repeated Measures box comes up, we specify angle0, angle4, and angle8 as our three within subject factors. This time, however, we also have a between subject factor. The between subject factor, group in this case, is moved to theBetween-Subjects Factor(s) box.

Specify Between-Subject and Within-Subject Variables
Specify Between-Subject and Within-Subject Variables

3. Before clicking OK, it is also beneficial to click the Post Hoc button and to move groups to the Post Hoc Tests for box and specify one or more of the Type I error rate adjustment procedures. It may also of interest to click the Options button and then specify that the parameter estimates should be given as well as to have the means displayed for the effects of interest by moving those effects to the Display Means for box.

At this point we have nearly exhausted the commonly used resources available via the SPSS point and click menus. At this point we have not yet replicated many of the results given in the book that make use of Table 14.10. However, most of the other results reported in the book can be obtained by making use of SPSS syntax or by using SAS.

At this point for the present analysis clicking OK will yield the (rather basic) results from the SPSS point and click menus for repeated measures. Note that, as before, for the within-subject effects both the univariate and the multivariate approaches are performed by default. Here we are only concerned with the multivariate approach to repeated measures.

Link to table 14.10 · Chapter index

Chapter 15. Mixed-effects models for repeated measures

Read the syntax notes for Chapter 15

Table 15.1 · Mixed-model menus (historical note)

The first table in Chapter 15 presents the Hypothetical McCarthy data again. This data set is used throughout the chapter as the to illustrate the discussion given on the mixed model. At the time of this writing the mixed model procedure is SPSS is not as fully developed the SAS analog PROC MIXED. For this reason no analyses using SPSS are provided to replicate the analyses given in Chapter 15. Those interested in exploring the menus of the mixed model procedures in SPSS can do so by clicking Analyze, then Mixed Models, and then Linear.

Link to table 15.1 · Chapter index

Chapter 16. Mixed-effects models for nested designs

Read the syntax notes for Chapter 16

Table 16.1 · Trainees nested within gender (historical note)

The first table in Chapter 16 presents the Severity Ratings by Clinical Trainees, which was originally given in Table 10.9. The data set is analyzed again using the multilevel model approach and the results are compared with those obtained in Chapter 10.

At the time of this writing the mixed model procedure is SPSS is not as fully developed the SAS analog PROC MIXED. For this reason no analyses using SPSS are provided to replicate the analyses given in Chapter 16, which were all done using PROC MIXED. Those interested in exploring the menus of the mixed model procedures in SPSS can do so by clicking Analyze, then Mixed Models, and then Linear.

See Table 10.9 for the related procedure.

Link to table 16.1 · Chapter index

Table 16.4 · Children nested within classrooms (historical note)

The hypothetical data contained in Table 16.4 is supposed to represent the data from 29 children who participated in a study to evaluate the effectiveness of an intervention designed to increase inductive reasoning skills. The data consists of children who are nested within one of six classrooms, where each classroom contained students from both the control and the experimental condition. The question of interest is whether or not the children who participated in the experimental group actually improved their cognitive reasoning ability.

At the time of this writing the mixed model procedure is SPSS is not as fully developed the SAS analog PROC MIXED. For this reason no analyses using SPSS are provided to replicate the analyses given in Chapter 16, which were all done using PROC MIXED. Those interested in exploring the menus of the mixed model procedures in SPSS can do so by clicking Analyze, then Mixed Models, and then Linear.

Link to table 16.4 · Chapter index

SPSS data and syntax

Select a chapter for its table data, exercise data, and syntax. Open .sav data files in SPSS Statistics and .sps programs in its Syntax Editor.

Chapter 1

Table data
Table 1

Exercise data
Exercise 18 · Exercise 19 · Exercise 20 · Exercise 21 · Exercise 22 · Exercise 23

Chapter 3

Table data
Table 1 · Table 3 · Raw data for Table 7 · Raw data for Table 9

Exercise data
Exercise 9 · Exercise 10 · Exercise 11 · Exercise 19 · Exercise 20 · Exercise 21 · Exercise 22

Syntax
Table 1 · Table 3 · Table 7 and 9

Chapter 4

Table data
Table 1 · Table 7

Exercise data
Exercise 11 · Exercise 12 · Exercise 13 · Exercise 21

Syntax
Table 1, part 1 · Table 1, part 2

Chapter 5

Table data
Table 4

Exercise data
Exercise 5 · Exercise 10 · Exercise 16 · Exercise 23 · Exercise 24

Syntax
Table 4

Chapter 6

Table data
Table 1

Exercise data
Exercise 10 · Exercise 14 · Exercise 16

Syntax
Table 1

Chapter 7

Table data
Table 1 · Table 5 · Table 9 · Table 11 · Table 15 · Table 23

Exercise data
Exercise 6 · Exercise 9 · Exercise 12 · Exercise 13 · Exercise 14 · Exercise 15 · Exercise 18 · Exercise 19 · Exercise 21 · Exercise 22 · Exercise 23 · Exercise 24 · Exercise 25

Syntax
Table 1 · Table 5 · Table 9 · Table 11 · Table 15 · Table 23

Chapter 8

Table data
Table 12

Exercise data
Exercise 15 · Exercise 16 · Exercise 17 · Exercise 18 · Exercise 19

Syntax
Table 12, part 1 · Table 12, part 2 · Table 12, part 3 · Table 12, part 4 · Table 12, part 5 · Table 12, part 6 · Table 12, part 7 · Table 12, part 8 · Table 12, part 9

Chapter 9

Table data
Table 1 · Table 7 · Table 11 · Extension, Table 1 · Extension, Figures 4 and 5

Exercise data
Exercise 4 · Exercise 14 · Exercise 15 · Exercise 16 · Extension, Exercise 1 · Extension, Exercise 2 · Extension, Exercise 3

Syntax
Table 1 · Table 7 · Table 11

Chapter 10

Table data
Table 5 · Table 9

Exercise data
Exercise 7 · Exercise 9 · Exercise 14

Syntax
Table 5 · Table 9

Chapter 11

Table data
Table 1 · Table 4 · Table 5 · Table 19 · Table 20

Exercise data
Exercise 3 · Exercise 5 · Exercise 17 · Exercise 18 · Exercise 19 · Exercise 21 · Exercise 22 · Exercise 23 · Exercise 24

Syntax
Table 1 (syntax guide) · Table 5 · Table 19 · Table 20

Chapter 12

Table data
Table 1 · Table 7 · Table 9 · Table 11 · Table 15 · Table 21

Exercise data
Exercise 9 · Exercise 17 · Exercise 18 · Exercise 19 · Exercise 21

Syntax
Table 1, part 1 · Table 1, part 2 · Table 15, part 1 · Table 15, part 2 · Table 15, part 3 · Table 15, part 4 · Table 21

Chapter 13

Table data
Table 1 · Table 2 · Table 6 · Table 12 · Table 14

Exercise data
Exercise 7 · Exercise 10 · Exercise 13 · Exercise 14 · Exercise 22 · Exercise 23 · Exercise 24 · Exercise 25

Syntax
Table 1 · Table 12, part 1 · Table 12, part 2

Chapter 14

Table data
Table 1 · Table 3 · Table 4 · Table 5 · Table 8 · Table 10

Exercise data
Exercise 10 · Exercise 14 · Exercise 15 · Exercise 21 · Exercise 22

Syntax
Table 1 · Table 3 · Table 4 · Table 5 · Table 8 · Table 10, part 1 · Table 10, part 2 · Table 10, part 3 · Table 10, part 4

Chapter 15

Table data
Table 1

Exercise data
Exercise 16 · Exercise 17 · Exercise 18 · Exercise 18, Univariate · Exercise 19, wide format · Exercise 19, Univariate

CSV data
Exercise 19, wide format (CSV)

Chapter 16

Table data
Table 1 · Table 4

Exercise data
Exercise 5 · Exercise 7 · Exercise 9

Tutorial data

Data
Tutorial 1, Table 1 · Tutorial 2, Table 1 · Tutorial 2, Table 2 · Tutorial 3A, Table 1 · Tutorial 3A, Table 2 · Tutorial 3A, Table 4 · Tutorial 3A, Table 5

CSV data
Tutorial 3A, Table 2 (CSV)

The original listings are also available for chapter data, exercise data, and chapter programs.

Scroll to Top