
Multiple comparison test between treatments or treatments versus control after Kruskal-Wallis test
kruskalmc(resp,...)
# S3 method for default
kruskalmc(resp, categ, probs = 0.05, cont=NULL,...)
# S3 method for formula
kruskalmc(resp,data=NULL,...)
a numeric vector of data values or a formula of the type 'response~category'.
a factor object giving the group for the corresponding elements of 'x'
the significance level
NULL (default) for multiple comparison between treatments; 'one-tailed' or 'two-tailed' for corresponding multiple comparisons treatments versus control; partial matching allowed
a data.frame including the variables used in the formula
other parameters to be passed as arguments (not used here)
A list of class 'mc' with the following items:
statistics used
the significance level
a data.frame with observed and critical differences
When the value of a Kruskal-Wallis test is significant, it indicates that at least one of the groups is different from at least one of the others. This test helps determining which groups are different with pairwise comparisons adjusted appropriately for multiple comparisons. Those pairs of groups which have observed differences higher than a critical value are considered statistically different at a given significance level. Three types of multiple comparisons are implemented: comparisons between treatments, 'one-tailed' and 'two-tailed' comparison treatments versus control. The first factor level is considered the control. NAs are omitted from data before processing.
For further details please consider the refence below where the method is fully described, or visit http://pagesperso-orange.fr/giraudoux/#pgirmess where a copy of the corresponding book section is downloadable.
Siegel and Castellan (1988) Non parametric statistics for the behavioural sciences. MacGraw Hill Int., New York. pp 213-214
kruskal.test
; to reorder factor levels see relevel
; for other functions about median multiple comparison see posthoc.kruskal.conover.test
, kruskal
# NOT RUN {
resp<-c(0.44,0.44,0.54,0.32,0.21,0.28,0.7,0.77,0.48,0.64,0.71,0.75,0.8,0.76,0.34,0.80,0.73,0.8)
categ<-as.factor(rep(c("A","B","C"),times=1,each=6))
kruskalmc(resp, categ)
kruskalmc(resp, categ, probs=0.01)
kruskalmc(resp, categ, cont="one-tailed")
kruskalmc(resp, categ, cont="two-tailed")
kruskalmc(resp~categ)
kruskalmc(resp~categ, probs=0.01)
kruskalmc(resp~categ, cont="one-tailed")
kruskalmc(resp~categ, cont="two-tailed")
# }
Run the code above in your browser using DataLab