anova2way {stats4teaching}R Documentation

Two-Way ANOVA

Description

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)

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.

conf.level

confidence level of the interval.

dec

number of decimals for observations.

Value

A list containing the following components:

Examples


anova2way(k=3, j=2, n=c(3,4,4,5,5,3), mean = c(1,4,2.5,5,6,3.75), sigma = c(1,1.5))


[Package stats4teaching version 0.1.0 Index]