| kruskal {agricolae} | R Documentation |
It makes the multiple comparison with Kruskal-Wallis. The parameters by default are alpha = 0.05.
kruskal(y, trt, alpha = 0.05, p.adj=c("none","holm","hommel",
"hochberg", "bonferroni", "BH", "BY", "fdr"), group=TRUE, main = NULL,console=FALSE)
y |
response |
trt |
treatment |
alpha |
level signification |
p.adj |
Method for adjusting p values (see p.adjust) |
group |
TRUE or FALSE |
main |
Title |
console |
logical, print output |
For equal or different repetition.
The post hoc test is using the criterium Fisher's least significant difference.
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 |
vector numeric |
trt |
vector alphanumeric |
alpha |
level significant |
p.adj |
text, see p.adjust |
group |
Logic |
main |
Title |
Felipe de Mendiburu
Practical Nonparametrics Statistics. W.J. Conover, 1999
library(agricolae) data(corn) str(corn) comparison<-with(corn,kruskal(observation,method,group=TRUE, main="corn")) comparison<-with(corn,kruskal(observation,method,p.adj="bon",group=FALSE, main="corn"))