Example

VARCOMP
  amtspent  BY storeid   shopfor usecoup
  /RANDOM = storeid
  /METHOD = SSTYPE (3)
  /PRINT = SS
  /PRINT = EMS
  /DESIGN = shopfor usecoup shopfor*usecoup storeid
  /INTERCEPT = INCLUDE .
  • The procedure fits a model to amtspent using storeid, shopfor, and usecoup as factors.
  • RANDOM identifies storeid as a random effect.
  • METHOD specifies ANOVA estimation using Type III sums of squares.
  • PRINT requests tabular display of the sums of squares and expected mean squares.
  • DESIGN indicates that the model fit is a factorial model for the fixed effects, plus a main-effects term for the random effect. The intercept is included.