vaov: ANOVA vectors

Description Usage Arguments Details Value Author(s) Examples

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)

fastR documentation built on May 2, 2019, 5:53 p.m.