An array of samples (groups), or one sample with group labels g.
Optionalg: readonly GroupLabel[]
Group labels, parallel to x.
Analysis of variance from a model formula, as R's aov(formula, data) (with weights and
contrasts): the same fit as lm with a formula; aovSummary gives the table of R's
summary(aov(...)). With one Error() term (y ~ W + Error(id/W)) the fit has error strata: the result is an
AovStrataFit whose tables aovSummary returns, one per stratum.
A formula such as "y ~ A * B".
The data frame: an object of columns.
Optionaloptions: LmFormulaOptions
Analysis of variance. Equivalent to R's
aov(). From samples, one way: the fit of the modely ~ g(asaov("y ~ g", data)), with the values in a columnyand the groups as a factorg; aovSummary gives the table of R'ssummary(aov(y ~ g)).The levels of
gare the group labels (sorted as R orders factor levels), or the positions of the samples in the list (from 1) for an array of samples, as in TukeyHSD. Missing values are left out, and a sample left empty has no level.