GRM Syntax - Examples
Shown below are a few examples of GRM syntax specifications for various common designs; refer to the GRM Syntax Overview for details concerning the GRM syntax. For additional examples, also refer to the GLM Syntax Examples section.
In practically all cases, the most efficient way to write GRM syntax is to use the Quick-specs dialogs. Specifically, from the Startup Panel, select the desired design in the Type of analysis box, and Quick-specs dialog as the Specification method; then click Ok to bring up the respective Quick-specs dialog. 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 from the 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) 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).
General Regression Models Syntax Examples
General Linear Models (GLM) Syntax Examples
Many of the General Linear Models (GLM) Syntax Examples can be run with minor modifications in GRM as well. However, remember that the following GLM features and options are not available in GRM:
- No nested designs can be specified;
- No choice of parameterization is available (sigma-restricted parameterization is always used in GRM);
- No choice of methods for partitioning the sums of squares is available; Type VI (effective hypothesis) sums of squares are always used (see also Six types of sums of squares for details);
- No within-subject (repeated measures) designs are available;
- No mixed-model ANOVA (with random effects) is available.