Given data and a matrix describing a design for a linear model, the function creates an ANOVA table, using sums of squares based on
a subdivision of the columns of the design matrix given as the third argument for the function.
A matrix with the same number of rows as there are data values. The matrix represents the design matrix for the linear model the ANOVA table is based on.
subdivisions
A vector of integers summing to the number of columns in the design matrix. The number of rows of the ANOVA table will be equal to the length
of this vector.