You can shorten the specification of a large factorial model by using the bar operator. For example, two ways of writing the model for a full threeway factorial model follow:
model Y = A B C A*B A*C B*C A*B*C; model Y = ABC;
When the bar () is used, the right and left sides become effects, and the cross of them becomes an effect. Multiple bars are permitted. The expressions are expanded from left to right, using rules 2–4 given in Searle (1971, p. 390).
Multiple bars are evaluated from left to right. For example, A
 B
 C
is evaluated as follows:








Crossed and nested groups of variables are combined. For example, A
(B
)  C
(D
) generates A
*C
(B
D
), among other terms.
Duplicate variables are removed. For example, A
(C
)  B
(C
) generates A
*B
(C
C
), among other terms, and the extra C
is removed.
Effects are discarded if a variable occurs on both the crossed and nested parts of an effect. For example, A
(B
)  B
(D
E
) generates A
*B
(B
D
E
), but this effect is eliminated immediately.
You can also specify the maximum number of variables involved in any effect that results from bar evaluation by specifying that maximum number, preceded by an at sign (@), at the end of the bar effect. For example, the following specification selects only those effects that contain two or fewer variables:
model Y = ABC@2;
The preceding example is equivalent to specifying the following MODEL statement:
model Y = A B C A*B A*C B*C;
More examples of using the bar and at operators follow:

is equivalent to 


is equivalent to 


is equivalent to 


is equivalent to 


is equivalent to 


is equivalent to 


is equivalent to 
