vaov: ANOVA vectors

vaovR Documentation

ANOVA vectors

Description

Compute vectors associated with 1-way ANOVA

Usage

vaov(x, ...)

## S3 method for class 'formula'
vaov(x, data = parent.frame(), ...)

Arguments

x

a formula.

...

additional arguments.

data

a data frame.

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.

Examples


aov(pollution ~ location, data = AirPollution)
vaov(pollution ~ location, data = AirPollution)


rpruim/fastR2 documentation built on Nov. 11, 2023, 7:32 a.m.