Learn R Programming

linearModel (version 1.0.2)

anovaTable: ANOVA Table

Description

Produces the overall ANOVA table where the model sum of squares are not partioned into their parts.

Usage

anovaTable(object, ...)

Arguments

object

lm or aov model object

...

currently ignored

Value

Object of class anova and data.frame

Examples

Run this code
# NOT RUN {
data(depression)

## MLR model
modMLR <- lm(depress~trauma+control,data=depression)
anovaTable(modMLR)

## ANOVA model
depression$gender <- factor(depression$gender)
depression$history <- factor(depression$history)
modAOV  <- lm(depress~-1+gender+history+gender:history,data=depression)
anovaTable(modAOV)

# }

Run the code above in your browser using DataLab