GLM Syntax Examples Overview

Listed below are several examples of GLM syntax specifications for various common designs; refer to the GLM Syntax Overview for details concerning the GLM syntax. For additional examples, also refer to the GLM Basic and Advanced Examples.  

In practically all cases, the most efficient way to write GLM syntax is to use the Quick-specs dialog boxes. Specifically, from the GLM Startup Panel, select the desired design in the Type of analysis box, and Quick Specs dialog as the Specification method; then click OK to display the respective Quick Specs dialog box. Note that when selecting a Type of analysis, it is not necessary that your design matches exactly the chosen type of design.

For example, if you want to exclude certain effects from a factorial ANOVA design, choose Factorial ANOVA in the GLM Startup Panel, specify the full factorial design, click the More button, and then select Syntax editor. The syntax for the full factorial design (as specified in the Quick Specs dialog box) will be written out to the syntax editor, and you can now modify the Design statement to customize the design (e.g., to drop effects).