Learn R Programming

WRS2 (version 0.3-1)

t3way: A three-way ANOVA for trimmed means.

Description

This function computes a three-way ANOVA for trimmed means with all interactions effects.

Usage

t3way(formula, data, tr = 0.2)

Arguments

formula
an object of class formula.
data
an optional data frame for the input data.
tr
trim level for the mean.

Value

  • Returns an object of class t3way containing:
  • Qafirst main effect
  • A.p.valuep-value first main effect
  • Qbsecond main effect
  • B.p.valuep-value second main effect
  • Qcthird main effect
  • C.p.valuep-value third main effect
  • Qabfirst two-way interaction effect
  • AB.p.valuep-value first two-way interaction effect
  • Qacsecond two-way interaction effect
  • AC.p.valuep-value second two-way interaction effect
  • Qbcthird two-way interaction effect
  • BC.p.valuep-value third two-way interaction effect
  • Qabcthree-way interaction effect
  • ABC.p.valuep-value three-way interaction effect
  • callfunction call
  • varnamesvariable names

References

Wilcox, R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Elsevier.

See Also

code{t1way}, code{t2way}

Examples

Run this code
t3way(aggressive ~ degree*gender*type, data = movie)

Run the code above in your browser using DataLab