Compute Type III Sum of Squares - Generic Function

DESCRIPTION:

Computes the sum of squares used in unweighted means analysis, also known as Type III sum of squares. This function is an S Version 3 generic function; see the help file for Methods for more details. Method functions can be written to handle specific S Version 3 classes of data. Classes that already have methods for this function include "lm", "aovlist", and "formula".

USAGE:

ssType3(object, ...)

REQUIRED ARGUMENTS:

object
an object that inherits from the one of the classes "lm", "aovlist", or "formula".

OPTIONAL ARGUMENTS:

...
optional arguments to be used in the call for a particular method. See the help file for ssType3.formula for more details.

VALUE:

an object of class "ssType3".

REFERENCES:

Kennedy, W.J. and Gentle, J.E. (1980). Statistical Computing. New York: Marcel Dekker.

SAS Institute, Inc. (1978). Tests of Hypotheses in Fixed-Effects Linear Models. SAS Technical Report R-101. Cary, NC: SAS Institute, Inc.

SAS Institute, Inc. (1990). SAS/Stat User's Guide (Fourth Edition). Cary, NC: SAS Institute, Inc.

SEE ALSO:

, , , , .

EXAMPLES:

bakers <- data.frame(
   Fat = factor(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 
                  2, 2, 2, 2, 2, 2, 2, 2, 2, 
                  3, 3, 3, 3, 3, 3, 3, 3)), 
   Surfactant = factor(c(
                  1, 1, 1, 2, 2, 2, 3, 3, 3, 
                  1, 1, 1, 2, 2, 3, 3, 3, 3, 
                  1, 1, 2, 2, 2, 2, 3, 3)), 
   Flour = factor(c(1, 2, 3, 1, 3, 4, 2, 3, 4, 2, 3, 4, 2, 
                    4, 1, 2, 3, 4, 1, 2, 1, 2, 3, 4, 2, 3)), 
   Volume = c(6.7, 4.3, 5.7, 7.1, 5.9, 5.6, 5.5, 6.4, 5.8, 
              5.9, 7.4, 7.1, 5.6, 6.8, 6.4, 5.1, 6.2, 6.3, 
              7.1, 5.9, 7.3, 6.6, 8.1, 6.8, 7.5, 9.1))

ssType3(Volume ~ Fat*Surfactant + Flour, data = bakers)