anova2way returns multivariate data in order to compute analysis of variance with 2 factors.
Usage
anova2way(k =2 , j = 2, n, mean = 0, sigma = 1,
coefvar = NULL, method = c("Tukey", "LSD", "Dunnett", "Bonferroni", "Scheffe"),
conf.level = 0.95, dec = 2)
Value
A list containing the following components:
Data: a data frame containing the samples created.
Size.effect: size effect for each factor and interaction.
Significance/Test Post-Hoc: significance for each factor and interaction and test Post-Hoc for each factor.
Arguments
k
number of levels Factor I. By default k=2.
j
number of levels Factor II. By default j=2.
n
number of elements in each group (k,j).
mean
vector of means.
sigma
vector of standard deviations.
coefvar
an optional vector of coefficients of variation.
method
post-hoc method applied. There are five possible choices: ``Tukey``, ``LSD``, ``Dunnett``, ``Bonferroni``, ``Scheffe``. Can be specified just the initial letter.