Learn R Programming

easyanova (version 1.1)

ea6: Analysis of variance with a covariate

Description

Perform analysis of variance with a covariate and other important complementary analyzes.

Usage

ea6(data)

Arguments

data
data is a data.frame

data frame with three columns, treatments, covariate and response (analysis in completely randomized design)

data frame with four columns, treatments, covariate, blocks and response (analysis in randomized block design)

Value

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

Details

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

References

KAPS, M. and LAMBERSON, W. R. Biostatistics for Animal Science: an introductory text. 2nd Edition. CABI Publishing, Wallingford, Oxfordshire, UK, 2009. 504p.

See Also

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

Examples

Run this code
# Kaps and Lamberson (2009)
data(data10)

# analysis in completely randomized design
r1<-ea6(data10[-3])

# analysis in randomized block design
r2<-ea6(data10)

r1[1];r2[1]

r1[c(6,5)]

Run the code above in your browser using DataLab