Learn R Programming

RVAideMemoire (version 0.9-35)

pairwise.wilcox.rating.test: Pairwise comparisons for ratings using Wilcoxon rank sum tests

Description

Perform pairwise comparisons for ratings (ordinal response variables) between group levels with correction for multiple testing.

Usage

pairwise.wilcox.rating.test(x, g, p.adjust.method = "fdr",
  paired = FALSE, ...)

Arguments

x
response vector (preferably an ordered factor).
g
grouping factor.
p.adjust.method
method for p-values correction. See help of p.adjust.
paired
a logical indicating whether you want a paired test.
...
additional arguments to pass to wilcox.rating.test

Value

  • Object of class "pairwise.htest"

See Also

wilcox.rating.test

Examples

Run this code
set.seed(1609)
response <- factor(sample(1:6,30,replace=TRUE),levels=c("1","2","3","4","5","6"),ordered=TRUE)
fact <- gl(3,1,30,labels=LETTERS[1:3])
kruskal.rating.test(response~fact)
pairwise.wilcox.rating.test(response,fact)

Run the code above in your browser using DataLab