Running the Analysis

  1. To run a Linear Mixed Models analysis, from the menus choose:

    Analyze > Mixed Models > Linear...

    Figure 1. Specify Subjects and Repeated dialog box
    Specify Subjects and Repeated dialog box
  2. In the Specify Subjects and Repeated dialog, select Market ID and Location ID as subject variables.
  3. Select Week as the repeated effects variable.
  4. Select AR(1) from the Repeated Covariance type dropdown list, and click Continue.
    Figure 2. Linear Mixed Models main dialog box
    Linear Mixed Models main dialog box
  5. Select Units sold in thousands as the dependent variable.
  6. Select Promotion as a factor.
  7. Click Fixed.
    Figure 3. Fixed Effects dialog box
    Fixed Effects dialog box
  8. In the Fixed Effects dialog, select promo in the Factors and Covariates listbox and click Add.
  9. Click Continue.
  10. Click Random in the Linear Mixed Models dialog box.
    Figure 4. Random Effects dialog box
    Random Effects dialog box
  11. Select Scaled Identity as the Covariance type.
  12. Select Include Intercept in the Random Effects group.
  13. Select Market ID as a subject identification variable in the Subjects Groupings group.
  14. Click Continue.
  15. Click Statistics in the Linear Mixed Models dialog box.
    Figure 5. Statistics dialog box
    Statistics dialog box
  16. In the Statistics dialog, select Parameter estimates, Tests for covariance parameters, Covariances of random effects, and Covariances of residuals in the Model Statistics group.
  17. Click Continue.
  18. Click OK in the Linear Mixed Models dialog box.

Next