threewayanova {ThreeWay}R Documentation

Three-way ANOVA

Description

Computation of three-way Analysis of Variance (ANOVA).

Usage

threewayanova(Y, n, m, p)

Arguments

Y

Matrix (or data.frame coerced to a matrix) of order (n x mp) containing the matricized array (frontal slices)

n

Number of A-mode entities

m

Number of B-mode entities

p

Number of C-mode entities

Value

A list including the following components:

SS.a

Main effect for the A-mode

SS.b

Main effect for the B-mode

SS.c

Main effect for the C-mode

SS.ab

Second order interaction (A- and B-mode)

SS.bc

Second order interaction (B- and C-mode)

SS.ac

Second order interaction (A- and C-mode)

SS.abc

Residual sum of squares after subtraction of second order interactions

Author(s)

Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it

References

H.A.L. Kiers \& I. Van Mechelen (2001). Three-way component analysis: principles and illustrative applications. Psychological Methods 6:84–110.

Examples

data(TV)
TVdata=TV[[1]]
anova3 <- threewayanova(TVdata, 16, 15, 30)

[Package ThreeWay version 1.1.3 Index]