tmeanTwoWay {twowaytests} | R Documentation |
Two-Way ANOVA for Trimmed Means
Description
tmeanTwoWay
computes a two-way ANOVA for trimmed means.
Usage
tmeanTwoWay(formula, data, tr = 0.1, alpha = 0.05, na.rm = TRUE, verbose = TRUE)
Arguments
formula |
a formula of the form |
data |
a data frame containing the variables in |
tr |
the rate of observations trimmed from each tail of the distribution. Default is set to 0.1. |
alpha |
the level of significance to assess the statistical difference. Default is set to 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. |
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 |
Author(s)
Muhammed Ali Yilmaz, Osman Dag
References
Wilcox, R.R. (2011). Introduction to robust estimation and hypothesis testing. Academic press.
See Also
Examples
library(twowaytests)
data(alveolar)
tmeanTwoWay(cell ~ ovalbumin*treatment, data = alveolar)
out <- tmeanTwoWay(cell ~ ovalbumin*treatment, data = alveolar, verbose = FALSE)
paircompTwoWay(out)
out <- tmeanTwoWay(cell ~ treatment*ovalbumin, data = alveolar, verbose = FALSE)
paircompTwoWay(out)