Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Details

There should not be too many ties in the data. The test statistics for the main effects in med2way are F-distributed, the (heteroscedastic) test for the interaction is chi-square distributed. Post hoc tests can be performed using mcp2a.

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

dim

design dimensions

References

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

See Also

Examples

med2way(attractiveness ~ gender*alcohol, data = goggles)
mcp2a(attractiveness ~ gender*alcohol, data = goggles, est = "median")

WRS2

A Collection of Robust Statistical Methods

v1.1-1
GPL-3
Authors
Patrick Mair [cre, aut], Rand Wilcox [aut]
Initial release
2021-02-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.