Skip to content

Paired Weighted Wilcoxon test in R

3 messages · Jim Lemon, Dreams Collector

#
Dear R-users,

I?m trying to perform a non-parametric statistical pairwise comparison of two samples "x" and "y" using the Wilcoxon test in R, but each of the pairs have a weight associated.

An example of my data is the following one:

set.seed(9)
x <- sample(x = c(1:100), size = 20, replace = TRUE)
y <- sample(x = c(1:100), size = 20, replace = TRUE)
weight <- runif(n = 20)
data <- data.frame(x = x, y = y, weight = weight)

I?m new with statistical tests. I?ve read this other post about a similar issue:

http://r.789695.n4.nabble.com/Weighted-Mann-Whitney-Wilcoxon-Test-td4695699.html <http://r.789695.n4.nabble.com/Weighted-Mann-Whitney-Wilcoxon-Test-td4695699.html>

But I?m not sure if I can use the packages/works cited there.

Any help/comment would be fantastic for me.

Thank you!
#
Hi DC9,
As no one has answered, I would say that as both the survey package
and Professor Lumley are widely respected, that is as good as it gets.

Jim

On Fri, Jun 23, 2017 at 7:26 PM, Dreams Collector
<dreamscollector9 at gmail.com> wrote:
#
Thank you very much for your suggestions, Jim!