Learn R Programming

ThreeWay (version 1.1.3)

threewayanova: 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

References

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

Examples

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

Run the code above in your browser using DataLab