threewayanova function

Three-way ANOVA

Three-way ANOVA

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

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

Returns

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.

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

Examples

data(TV) TVdata=TV[[1]] anova3 <- threewayanova(TVdata, 16, 15, 30)
  • Maintainer: Paolo Giordani
  • License: GPL (>= 2)
  • Last published: 2015-09-07

Useful links