Learn R Programming

agricolae (version 1.0-1)

HSD.group: Multiple comparisons, group: Tukey

Description

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

Usage

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

Arguments

y
Variable response
trt
Treatments
df
Degrees of freedom
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, LSD, LSD.group, waller.group, bar.err, bar.group

Examples

Run this code
library(agricolae)
data(sweetpotato)
attach(sweetpotato)
model<-aov(yield~virus)
df<-df.residual(model)
MSerror<-deviance(model)/df
comparison <- HSD.group(yield,virus,df,MSerror, main="Yield of sweetpotato. Dealt with different virus")
#stargraph
bar.err(comparison,std=TRUE, horiz=TRUE, xlim=c(0,45),density=4)
#endgraph

Run the code above in your browser using DataLab