GLM (STATISTICA) Syntax - Overview

The GLM (STATISTICA) syntax consists of command lines, which are terminated by semicolons. The complete command syntax for GLM is shown below. Note that terms in curly brackets ({}) denote alternate specifications (e.g., LACKOFFIT = NO or LACKOFFIT = YES); optional keywords are enclosed in brackets ([]); all keywords are shown in upper case letters (even though the syntax interpreter is not case sensitive). To learn more about each keyword, click on it.

[GLM;]

DEPENDENT

[=]

{ Variable List };

[GROUPS

[=]

{ NONE };

 

 

{ Variable [(Value List)

 

 

.......

 

 

Variable [(Value List)] };]

[COVARIATE

[=]

{ NONE };

 

 

{ Variable List };]

[DESIGN

[=]

{ NONE };

 

 

{ Effects };]

[INTERCEPT

[=]

{ INCLUDE }

 

 

{ EXCLUDE };]

[LACKOFFIT

[=]

{ NO }

 

 

{ YES };]

[PARAM

[=]

{ SIGMA }

 

 

{ OVERP };]

[SSTYPE

[=]

{ 1 }

 

 

{ 2 }

 

 

{ 3 }

 

 

{ 4 }

 

 

{ 5 }

 

 

{ 6 }

 

 

{ BALANCED };]

[ESTIMATE

[=]

{ NONE };

 

 

{ Value list }]

 

 

.......

[ESTIMATE

[=]

{ Value list };]

[SDELTA

[=]

{ Value };]

[IDELTA

[=]

{ Value };]

[RANDOM

[=]

{ NONE }

 

 

{ Group Variable List };]

[SURFACE

[=]

{ NONE }

 

 

{ Covariate Variable List };]

[MIXTURE

[=]

{ NONE }

 

 

{ Covariate Variable List };]

[REPEATED

[=]

{ NONE }

 

 

{ FactorName Levels

 

 

.......

 

 

FactorName Levels };]

[WDESIGN

[=]

{ NONE }

 

 

{ Repeated Measures Effects };]

[SAMPLE

[=]

{ NONE }

 

 

{ Variable (Value) };]

[OUTPUT

[=]

{ NONE }

 

 

{ List of options (integers) };]

Example. Shown below is an example specification for a simple 4-way full factorial between group design with one repeated measures factor, and a covariate (use example data file Exp.sta to run this examples).

GLM;

DEPENDENT

=

CORRECT1 CORRECT2 CORRECT3;

GROUPS

=

GROUP GENDER TIME PAID;

COVARIATE

=

STRESS_R;

DESIGN

=

STRESS_R + GROUP | GENDER | TIME | PAID;

REPEATED

=

R1 3;

WDESIGN

=

R1;

For more examples, see GLM (STATISTICA) Syntax Examples.

Upper case and lower case letters. The syntax editor is not case sensitive; i.e., DEPENDENT and dependent or Dependent are all valid specifications of the same keyword.

Order of keywords. The order of keywords should follow that implied in the complete listing of all keywords shown above. Note that, while most of the options can be specified in any order, the Design statement must follow the Dependent, Groups, and Covariate specifications; likewise, the Wdesign keyword must follow the Repeated specifications, which itself must follow the Dependent variable list specifications. In general, when a keyword references a variable or effect previously defined, then that specification must occur before the respective keyword reference (e.g., Groups must precede Random, etc.).

Comments. You may insert comments into the syntax by placing them in curly brackets (e.g., { This is a comment }), or a pound sign (e.g., ... # This is a comment; all text starting at the pound sign to the end of the respective line will be treated as a comment). You may place comments in between any keywords of the syntax, and you may include several comment lines. Comments will be ignored when the syntax is parsed.