Learn R Programming

twowaytests (version 1.4)

medTwoWay: Two-Way ANOVA for Medians

Description

medTwoWay computes a two-way ANOVA for medians.

Usage

medTwoWay(formula, data, alpha = 0.05, na.rm = TRUE, verbose = TRUE)

Value

A list containing the following components:

output

a data frame of output.

alpha

the level of significance to assess the statistical difference.

method

the method name.

data

a data frame containing the variables in which NA values (if exist) are removed.

formula

a formula of the form lhs ~ rhs where lhs gives the sample values and rhs gives the two factors.

Arguments

formula

a formula of the form lhs ~ rhs where lhs gives the sample values and rhs gives the two factors.

data

a data frame containing the variables in formula.

alpha

the level of significance to assess the statistical difference. Default is set to alpha = 0.05.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

verbose

a logical for printing output to R console.

Author

Muhammed Ali Yilmaz, Osman Dag

References

Wilcox, R.R. (2011). Introduction to robust estimation and hypothesis testing. Academic press.

See Also

med2way

Examples

Run this code

library(twowaytests)
data(alveolar)

medTwoWay(cell ~ ovalbumin*treatment, data = alveolar)

out <- medTwoWay(cell ~ ovalbumin*treatment, data = alveolar, verbose = FALSE)
paircompTwoWay(out)

out <- medTwoWay(cell ~ treatment*ovalbumin, data = alveolar, verbose = FALSE)
paircompTwoWay(out)

Run the code above in your browser using DataLab