This function performs estimation of ANOVA Type-1 sum of squares
using the SWEEP-operator (see reference), operating on the augmented
matrix \(X'X\), where \(X\) represents the design matrix not differentiating
between fixed and random factors. See the numerical example in Fsweep
exemplifying the type of augmentation of \(X'X\) on which sweeping is carried out.
This is an utility function not intended to be called directly.
For each term in the formula the design-matrix \(Z\) is constructed.
Matrix \(X\) corresponds to binding all these \(Z\)-matrices together column-wise.
Degrees of freedom for each term are determined by subtracting the number of
linearly dependent columns from the total number of column in X asigned to a
specific term.