Professional Documents
Culture Documents
RDocumentation
Description
Multiple comparisons of treatments by means of LSD and a grouping of treatments. The level by alpha default is 0.05.
Returns p-values adjusted using one of several methods
Usage
Arguments
y
model(aov or lm) or answer of the experimental unit
trt
Constant( only y=model) or vector treatment applied to each experimental unit
DFerror
Degrees of freedom of the experimental error
MSerror
Means square error of the experimental
alpha
Level of risk for the test
p.adj
Method for adjusting p values (see p.adjust)
group
TRUE or FALSE
main
title of the study
console
logical, print output
https://www.rdocumentation.org/packages/agricolae/versions/1.3-5/topics/LSD.test 1/3
4/7/22, 0:18 LSD.test function - RDocumentation
Value
statistics
Statistics of the model
parameters
Design parameters
means
Statistical summary of the study variable
comparison
Comparison between treatments
groups
Formation of treatment groups
Details
References
See Also
# NOT RUN {
library(agricolae)
data(sweetpotato)
model<-aov(yield~virus, data=sweetpotato)
#stargraph
https://www.rdocumentation.org/packages/agricolae/versions/1.3-5/topics/LSD.test 2/3
4/7/22, 0:18 LSD.test function - RDocumentation
sta g ap
# Variation range: max and min
plot(out)
#endgraph
df<-df.residual(model)
MSerror<-deviance(model)/df
#stargraph
# Variation interquartil range: Q75 and Q25
plot(out,variation="IQR")
#endgraph
out<-LSD.test(model,"virus",p.adj="hommel",console=TRUE)
# }
Powered by DataCamp
https://www.rdocumentation.org/packages/agricolae/versions/1.3-5/topics/LSD.test 3/3