aovTwoWay {twowaytests} | R Documentation |
Two-Way ANOVA
Description
aovTwoWay
computes a two-way ANOVA for main effects and interaction effect.
Usage
aovTwoWay(formula, data, alpha = 0.05, na.rm = TRUE, verbose = TRUE)
Arguments
formula |
a formula of the form |
data |
a data frame containing the variables in |
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. |
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
Toutenburg, H., Shalabh, S., Shalabh, H. (2002). Statistical analysis of designed experiments. Springer.
Examples
library(twowaytests)
data(alveolar)
aovTwoWay(cell ~ ovalbumin*treatment, data = alveolar)
out <- aovTwoWay(cell ~ ovalbumin*treatment, data = alveolar)
paircompTwoWay(out)
out <- aovTwoWay(cell ~ ovalbumin*treatment, data = alveolar, alpha = 0.10)
paircompTwoWay(out)
out <- aovTwoWay(cell ~ treatment*ovalbumin, data = alveolar, alpha = 0.10)
paircompTwoWay(out)