ANOVA vectors

Share:

Description

Compute vectors associated with 1-way ANOVA

Usage

1
2
3

Arguments

x

a formula.

data

a data frame.

...

additional arguments.

Details

This is primarily designed for demonstration purposes to show how 1-way ANOVA models partition variance. It may not work properly for more complicated models.

Value

A data frame with variables including grandMean, groupMean, ObsVsGrand, STotal, ObsVsGroup, SError, GroupVsGrand, and STreatment. The usual SS terms can be computed from these by summing.

Author(s)

Randall Pruim

Examples

1
2
aov(pollution ~ location, airpollution)
vaov(pollution ~ location, airpollution)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.