Learn R Programming

WRS2 (version 0.2-0)

med1way: Heteroscedastic one-way ANOVA for medians.

Description

This function computes a one-way ANOVA for the medians. Homoscedasticity assumption not required. There shouldn't be too many ties.

Usage

med1way(formula, data, alpha = 0.05, crit = NA, iter = 1000)

Arguments

formula
an object of class formula.
data
an optional data frame for the input data.
alpha
significance level.
crit
if NA an appropriate critical value is determined for the alpha value specified and a p-value is returned. If a value for crit is specified, it is used as the critical value, but no p-value is reported. Specifying a value for
iter
number of iterations.

Value

  • Returns an object of class med1way containing:
  • testvalue of the test statistic
  • crit.valcritical value
  • p.valuep-value
  • callfunction call

References

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

See Also

t1way,t1waybt

Examples

Run this code
med1way(libido ~ dose, data = viagra)

Run the code above in your browser using DataLab