Description Usage Arguments Details Value Author(s) References See Also Examples

Compute ANOVA Type-1 sum of squares for linear models.

1 | ```
getSSQsweep(Data, tobj, random = NULL)
``` |

`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) |

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 `Csweep`

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.

(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' |

Andre Schuetzenmeister andre.schuetzenmeister@roche.com

Goodnight, J.H., (1979), A Tutorial on the SWEEP Operator, The American Statistician, 33:3, p.149-158

1 2 3 4 5 6 | ```
## Not run:
data(dataEP05A2_1)
res <- VCA:::getSSQsweep(dataEP05A2_1, terms(y~day/run))
str(res)
## End(Not run)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.