Learn R Programming

fastR (version 0.10.3)

vaov: ANOVA vectors

Description

Compute vectors associated with 1-way ANOVA

Usage

vaov(x, ...)

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

Arguments

x

a formula.

additional arguments.

data

a data frame.

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.

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.

Examples

Run this code
# NOT RUN {
aov(pollution ~ location, data=airpollution)
vaov(pollution ~ location, data=airpollution)

# }

Run the code above in your browser using DataLab