Learn R Programming

agricolae (version 1.0-1)

LSD: Multiple comparisons "Least significant difference" LSD

Description

Multiple comparisons of treatments by means of LSD. The level of meaning for the comparison by default is 0.05

Usage

LSD(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.group, HSD, waller

Examples

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

Run the code above in your browser using DataLab