Last data update: 2014.03.03

R: Two-way Analysis of Variance Summary
summary2wayR Documentation

Two-way Analysis of Variance Summary

Description

Displays summary information for a two-way anova analysis. The lm object must come from a numerical response variable and factors. The output depends on the value of page:

page = "table" anova table page = "means" cell means matrix, numeric summary page = "effects" table of effects page = "interaction" tables of contrasts page = "nointeraction" tables of contrasts

Usage

summary2way(fit, page = "table", digit = 5, conf.level = 0.95, 
                   print.out = TRUE, ...)

Arguments

fit

an lm object, i.e. the output from "lm()".

page

options for output: "table", "means", "effects", "interaction", "nointeraction"

digit

the number of decimal places in the display.

conf.level

confidence level of the intervals.

print.out

if TRUE, print out the output on the screen.

...

other arguments like inttype, pooled etc.

Value

Df

degrees of freedom for regression, residual and total.

Sum of Sq

sum squares for regression, residual and total.

Mean Sq

mean squares for regression and residual.

F value

F-statistic value.

Pr(F)
Main Effect
Group Effects

See Also

"summary1way"

Examples

##Arousal data:
data(arousal.df)
fit<-lm(arousal~gender+picture+gender*picture,data=arousal.df)
summary2way(fit)

Results