Learn R Programming

sasLM (version 0.6.0)

ANOVA: Analysis of Variance similar to SAS PROC ANOVA

Description

Analysis of variance with type I, II, and III sum of squares.

Usage

ANOVA(Formula, Data, eps=1e-8)

Arguments

Formula

a conventional formula for a linear model.

Data

a data.frame to be analyzed

eps

Less than this value is considered as zero.

Value

The result is comparable to that of SAS PROC ANOVA.

ANOVA

ANOVA table for the model

Type I

Type I sum of square table

Type II

Type II sum of square table

Type III

Type III sum of square table

Details

It performs the core function of SAS PROC ANOVA.

Examples

Run this code
# NOT RUN {
  ANOVA(uptake ~ Plant + Type + Treatment + conc, CO2)
# }

Run the code above in your browser using DataLab