Running the Analysis
- To run a GLM Repeated Measures analysis,
from the menus choose:
Figure 1. GLM Repeated Measures Define Factors dialog box - Type week as the within-subject factor name.
- Type 4 as the number of levels.
- Click Add.
- Type sales as the measure name.
- Click Add.
- Click Define.
Figure 2. GLM Repeated Measures main dialog box - Select SALES.1: Units sold in thousands through SALES.4: Units sold in thousands (when variables are listed in file order) as within-subjects variables.
- Select Market ID and Promotion as between-subjects factors.
- Click Model in
the GLM Repeated Measures dialog box.
Figure 3. Model dialog box - In the Model dialog box, select Type IV from the Sum of squares dropdown
list.
The cell frequencies for the layout of Market ID and Promotion * Market ID are unbalanced, so using the Type IV sums of squares is recommended. Further, Promotion * Market ID has empty cells, which will result in reduced degrees of freedom for this effect.
- Click Continue.
- Click Plots in the GLM Repeated Measures dialog
box.
Figure 4. Profile Plots dialog box - Select week as the factor to place on the horizontal axis.
- Select promo as the factor to define separate lines in the plot.
- Click Add.
- Select week as the factor to place on the horizontal axis.
- Select marketid as the factor to define separate lines in the plot.
- Click Add.
- Click Continue.
- Click Options in the GLM Repeated Measures dialog box.
Figure 5. Options dialog box - In the Options dialog, select Estimates of effect size, SSCP matrices, and Homogeneity tests in the Display group.
- Click Continue.
- Click OK in the GLM Repeated Measures dialog box.