Learn R Programming

agricolae (version 1.0-1)

LSD.group: Multiple comparisons, group: "Least significant difference"

Description

Multiple comparisons of treatments by means of LSD and grouping of treatments. The level by default alpha is 0.05.

Usage

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

Arguments

y
Answer of the experimental unit
trt
Treatment applied to each experimental unit
df
Degrees of freedom of the experimental error
MSerror
Means square error of the experimental
alpha
Level of risk for the test
main
title of the study

Value

  • The meaning is given by * for the level alpha.
  • yNumeric
  • trtalfanumeric
  • dfNumeric
  • MSerrorNumeric
  • alphaNumeric
  • mainNumeric

Details

For equal or different repetition.

References

Steel, R.; Torri,J; Dickey, D.(1997) Principles and Procedures of Statistics A Biometrical Approach. pp178.

See Also

LSD, HSD, waller, HSD.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 <- LSD.group(yield,virus,df,MSerror,main="Yield of sweetpotato
dealt with different virus")
#stargraph
bar.err(comparison,std=TRUE,ylim=c(0,45),density=4,border="blue")
#endgraph

Run the code above in your browser using DataLab