Learn R Programming

agricolae (version 1.0-1)

HSD: Multiple comparisons: Tukey

Description

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

Usage

HSD(y, trt, df, MSerror, alpha = 0.05, main = NULL)

Arguments

y
Variable response
trt
Treatments
df
Degree free
MSerror
Mean Square Error
alpha
Significant level
main
Title

Value

  • yNumeric
  • trtfactor
  • dfNumeric
  • MSerrorNumeric
  • alphaNumeric
  • 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

HSD.group, LSD, waller

Examples

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

Run the code above in your browser using DataLab