For unbalanced factorial data, SAS Type II and Type III sums of squares can be used. Type III sum of squares compares unweighted averages of means, which is usually desirable for hypothesis testing purposes. For model-building purposes, Type II sums of squares are appropriate because hierarchical models are used for model comparisons.