Table 4.1

PROC GLM; /* use procedure GLM for unbalanced ANOVAs */
CLASS A B; /* indicates categorical variables */
MODEL X = A B A*B/SS3; /* model statement corresponding to Table 4.1,use type III sums of squares. Warning: results are only approximate if the design is unbalanced. */

/*** If factors A and B are random effects use the following
command to obtain the correct F tests ***/

RANDOM B A*B/TEST; /* Declare sites to be a random effect and ask SAS to compute the Satterthwaite correction for an unbalanced design. */

Website Terms and Conditions and Privacy Policy
Please send comments or suggestions about this Website to