Description Usage Arguments Details Value Author(s) References See Also Examples
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
1 2 |
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 |
For equal or different repetition. p.adj = "holm", "hommel", "hochberg", "bonferroni", "BH", "BY", "fdr". see p.adjust() p-adj ="none" is t-student. p-adj ="hommel" is not applied in this test.
y |
class (aov or lm) or vector numeric |
trt |
constant (only y=model) or vector alfanumeric |
DFerror |
Numeric |
MSerror |
Numeric |
alpha |
Numeric |
p.adj |
text, see p.adjust |
group |
Logic |
main |
Numeric |
Felipe de Mendiburu
Steel, R.; Torri,J; Dickey, D.(1997) Principles and Procedures of Statistics A Biometrical Approach. pp178.
HSD.test
, waller.test
, SNK.test
,
bar.err
, bar.group
,duncan.test
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library(agricolae)
data(sweetpotato)
model<-aov(yield~virus, data=sweetpotato)
out <- LSD.test(model,"virus", p.adj="bonferroni")
#stargraph
bar.group(out$groups,ylim=c(0,45),density=4,border="blue")
#endgraph
# Old version LSD.test()
df<-df.residual(model)
MSerror<-deviance(model)/df
out <- with(sweetpotato,LSD.test(yield,virus,df,MSerror, p.adj="bonferroni",
group=FALSE))
#stargraph
# Variation range: Max - Min
bar.err(out$means,variation="range",ylim=c(0,44),bar=FALSE,col=0)
#endgraph
LSD.test(model,"virus",p.adj="bon",console=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.