kruskal.wallis.lsd {ANSM5} | R Documentation |
kruskal.wallis.lsd()
performs the Least Significant Differences test after the Kruskal-Wallis test and is used in chapter 8 of "Applied Nonparametric Statistical Methods" (5th edition)
kruskal.wallis.lsd(x, g, ids)
x |
Numeric vector of same length as g |
g |
Factor of same length as x |
ids |
Vector of length 2 with elements both levels of g |
An ANSMtest object with the results from applying the function
# Example 8.10 from "Applied Nonparametric Statistical Methods" (5th edition)
kruskal.wallis.lsd(ch8$sentences, ch8$authors, c("Vulliamy", "Queen"))
# Exercise 8.8 from "Applied Nonparametric Statistical Methods" (5th edition)
kruskal.wallis.lsd(ch8$seizure.score, ch8$hospital, c("HospitalA", "HospitalC"))