Learn R Programming

WRS2 (version 0.2-0)

t2way: A two-way ANOVA for trimmed means.

Description

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

Usage

t2way(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 t2way containing:
  • Qafirst main effect
  • A.p.valuep-value first main effect
  • Qbsecond main effect
  • B.p.valuep-value second main effect
  • Qabinteraction effect
  • AB.p.valuep-value interaction effect
  • callfunction call
  • varnamesvariable names

References

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

See Also

t1way, med1way

Examples

Run this code
t2way(attractiveness ~ gender*alcohol, data = goggles)

Run the code above in your browser using DataLab