Learn R Programming

agricolae (version 1.0-4)

HSD.test: Multiple comparisons: Tukey

Description

It makes multiple comparisons of treatments by means of Tukey. The level by alpha default is 0.05.

Usage

HSD.test(y, trt, DFerror, MSerror, alpha = 0.05, group=TRUE, main = NULL)

Arguments

y
Variable response
trt
Treatments
DFerror
Degree free
MSerror
Mean Square Error
alpha
Significant level
group
TRUE or FALSE
main
Title

Value

  • yNumeric
  • trtfactor
  • DFerrorNumeric
  • MSerrorNumeric
  • alphaNumeric
  • groupLogic
  • mainText

Details

It is necessary first makes a analysis of variance.

References

Principles and procedures of statistics a biometrical approach Steel & Torry & Dickey. Third Edition 1997

See Also

LSD.test, waller.test

Examples

Run this code
library(agricolae)
data(sweetpotato)
attach(sweetpotato)
model<-aov(yield~virus)
df<-df.residual(model)
MSerror<-deviance(model)/df
comparison <- HSD.test(yield,virus,df,MSerror, group=TRUE,
main="Yield of sweetpotato. Dealt with different virus")

Run the code above in your browser using DataLab