Learn R Programming

agricolae (version 1.2-0)

kruskal: Kruskal Wallis test and multiple comparison of treatments.

Description

It makes the multiple comparison with Kruskal-Wallis. The parameters by default are alpha = 0.05.

Usage

kruskal(y, trt, alpha = 0.05, p.adj=c("none","holm", 
"hochberg", "bonferroni", "BH", "BY", "fdr"), group=TRUE, main = NULL,console=FALSE)

Arguments

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

Value

  • yvector numeric
  • trtvector alphanumeric
  • alphalevel significant
  • p.adjtext, see p.adjust
  • groupLogic
  • mainTitle

Details

For equal or different repetition. p.adj = "holm", "hochberg", "bonferroni", "BH", "BY", "fdr". see p.adjust() p-adj ="none" is t-student. p-adj ="hommel" is not applied in this test.

References

Practical Nonparametrics Statistics. W.J. Conover, 1999

See Also

friedman, durbin.test

Examples

Run this code
library(agricolae)
data(corn)
attach(corn)
str(corn)
comparison<-kruskal(observation,method,group=TRUE, main="corn")
comparison<-kruskal(observation,method,p.adj="bon",group=FALSE, main="corn")
detach(corn)

Run the code above in your browser using DataLab