stat.bwss: Between and Within Group Sum of Squares Calculation
Description
This function computes the between and within group sum
of squares for each row of a matrix which may have NAs.
Usage
stat.bwss(x, cl)
Arguments
x
a matrix, NAs allowed. In the microarray context, the rows
of X could correspond to genes and the columns to different
hybridizations.
cl
column labels, must be consecutive integers.
Value
List containing the following components
wnmatrix with class sizes for each row of X;
BWvector of BSS/WSS for each row of X;
BSSbetween group sum of squares for each row of X;
WSSwithin group sum of squares for each row of X;
TSStotal sum of squares for each row of X;
tvarvariance for each row of X.
References
S. Dudoit, J. Fridlyand, and T. P. Speed. Comparison of
Discrimination Methods for the Classification of Tumors Using Gene
Expression Data. June 2000. (Statistics, UC Berkeley, Tech Report #
576).