R: A two-way ANOVA for medians.

med2way {WRS2} | R Documentation

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

`Qa` | first main effect
`A.p.value` | p-value first main effect
`Qb` | second main effect
`B.p.value` | p-value second main effect
`Qab` | interaction effect
`AB.p.value` | p-value interaction effect
`call` | function call
`varnames` | variable names

### References

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

### See Also

`t2way`, `med1way`

### Examples

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

[Package WRS2 version 0.9-2 Index]