pairwise.clusWilcox.test {clusrank} | R Documentation |
Pairwise Wilcoxon Rank Sum and Signed Rank Tests for Clustered Data
Description
Performs pairwise comparisons between group levels with corrections for multiple testing.
Usage
pairwise.clusWilcox.test(
x,
group,
cluster,
p.adjust.method = p.adjust.methods,
...
)
Arguments
x |
A numeric vector of data values. |
group |
An optional numeric vector of treatment id. |
cluster |
An optional numeric vector of cluster id. |
p.adjust.method |
Method for adjusting p values. |
... |
Other arguments passed to |
Value
A pairwise.htest
object.
Examples
library(clusrank)
data(crd)
## for demonstration purpose, create random groups
set.seed(123)
g <- sample(seq_len(3), size = nrow(crd), replace = TRUE)
with(crd, pairwise.clusWilcox.test(z, group = g, cluster = id,
method = "ds", p.adjust.method = "fdr"))
[Package clusrank version 1.0-4 Index]