\HeaderA{bwss.matrix}{Between and within sums of squares for matrix}{bwss.matrix}
\keyword{models}{bwss.matrix}
\begin{Description}\relax
Sums of squares between and within the columns of a matrix. Allows for missing values. This function is called by the \code{\LinkA{anova}{anova}} method for \code{MAList} objects.
\end{Description}
\begin{Usage}
\begin{verbatim}bwss.matrix(x)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a numeric matrix.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is equivalent to a one-way analysis of variance where the columns of the matrix are the groups.
If \code{x} is a matrix then \code{bwss.matrix(x)} is the same as \code{bwss(x,col(x))} except for speed of execution.
\end{Details}
\begin{Value}
A list with components
\begin{ldescription}
\item[\code{bss}] sums of squares between the column means.
\item[\code{wss}] sums of squares within the column means.
\item[\code{bdf}] degrees of freedom corresponding to \code{bss}.
\item[\code{wdf}] degrees of freedom corresponding to \code{wss}.
\end{ldescription}
\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{bwss}{bwss}}, \code{\LinkA{anova.MAList}{anova.MAList}}
\end{SeeAlso}

