getSSQqf: ANOVA Sum of Squares via Quadratic Forms
Description
Compute ANOVA Type-1 sum of squares for linear models.
Usage
getSSQqf(Data, tobj, random = NULL)
Arguments
Data
(data.frame) with the data
tobj
(terms) object derived from original formula object
random
(character) vector, optionally containing information about each
model term, whether it is random or fixed (only used in mixed models)
Value
(list) representing the with variables:
aov.tab
basic ANOVA-table with degrees of freedom (DF), SS and MS
Lmat
(list) with components 'Z' and 'A'
Details
This function performs estimation of ANOVA Type-1 sum of squares
using an approach of expressing them as quadratic forms in y,
the column vector of observations. This is an utility function not
intended to be called directly.
For each term in the formula the design-matrix Z and the corresponding
A-matrix
Degrees of freedom for each term are determined calling function anovaDF.