Learn R Programming

WRS2 (version 0.3-1)

med2way: A two-way ANOVA for medians.

Description

This function computes a two-way ANOVA medians with interactions effects.

Usage

med2way(formula, data)

Arguments

formula
an object of class formula.
data
an optional data frame for the input data.

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

t2way, med1way

Examples

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

Run the code above in your browser using DataLab