Learn R Programming

easyanova (version 1.1)

ea8: Analysis of variance in switchback design

Description

Perform analysis of variance in switchback design and other important complementary analyzes.

Usage

ea8(data)

Arguments

data
data is a data.frame

data frame with four columns, treatment, period, animal, and response (completely randomized design)

data frame with five columns, treatment, blocks, period, animal and response (randomized block design)

Value

  • Returns analysis of variance, normality test, coefficient of variation, means (adjusted means), multiple comparisons tests.

Details

The response and period must be numeric. Other variables can be numeric or factors.

References

SAMPAIO, I. B. M. Estatistica aplicada a experimentacao animal. 3nd Edition. Belo Horizonte: Editora FEPMVZ, Fundacao de Ensino e Pesquisa em Medicina Veterinaria e Zootecnia, 2010. 264p.

SANDERS W.L. and GAYNOR, P.J. Analysis of switchback data using Statistical Analysis System, Inc. Software. Journal of Dairy Science, 70.2186-2191. 1987.

See Also

ea1, ea2, ea3, ea4, ea5, ea6, ea7, lme, glht

Examples

Run this code
# Sampaio (2010)
data(data16)
r1<-ea8(data16)
r1

# Sanders and Gaynor (1987)
data(data17)
r2<-ea8(data17)
r2

Run the code above in your browser using DataLab