Skip to main content
QUICK REVIEW

[Paper Review] Wilcoxon Rank-Based Tests for Clustered Data with R Package clusrank

Yujing Jiang, Xin He|arXiv (Cornell University)|Jun 11, 2017
Data-Driven Disease SurveillanceMedicine5 references35 citations
TL;DR

This paper introduces the R package clusrank, which implements modern rank-based nonparametric tests for clustered data—specifically Wilcoxon rank-sum and signed-rank tests—using two main approaches: the RGL method (Rosner et al., 2003) and the DS method (Datta & Satten, 2008). The package provides a unified, user-friendly interface with exact permutation tests and supports various cluster structures, including informative cluster sizes and non-exchangeable correlations.

ABSTRACT

Wilcoxon Rank-based tests are distribution-free alternatives to the popular two-sample and paired t-tests. For independent data, they are available in several R packages such as stats and coin. For clustered data, in spite of the recent methodological developments, there did not exist an R package that makes them available at one place. We present a package clusrank where the latest developments are implemented and wrapped under a unified user-friendly interface. With different methods dispatched based on the inputs, this package offers great flexibility in rank-based tests for various clustered data. Exact tests based on permutations are also provided for some methods. Details of the major schools of different methods are briefly reviewed. Usages of the package clusrank are illustrated with simulated data as well as a real dataset from an ophthalmological study. The package also enables convenient comparison between selected methods under settings that have not been studied before and the results are discussed.

Motivation & Objective

  • To address the lack of a centralized, user-friendly R package implementing modern rank-based tests for clustered data.
  • To unify recent methodological advances in Wilcoxon-type tests for clustered data under a single, accessible interface.
  • To support both two-sample rank-sum and paired signed-rank tests under various correlation and cluster size assumptions.
  • To provide exact permutation-based inference for improved Type I error control in small samples.
  • To enable comparative evaluation of different methods under novel data settings not previously studied.

Proposed method

  • Implements the RGL method (Rosner et al., 2003), which adjusts the variance of the Wilcoxon rank-sum statistic under exchangeability and common intracluster correlation.
  • Integrates the DS method (Datta & Satten, 2008), which uses within-cluster resampling to handle informative cluster sizes and non-exchangeable dependence.
  • Supports both asymptotic and permutation-based inference, with exact p-values computed via Monte Carlo resampling.
  • Uses a unified function interface that dispatches between rank-sum and signed-rank tests based on input data structure and user specification.
  • Handles unequal cluster sizes, stratification, and AR1 correlation structures in simulation and real-data evaluation.
  • Enables comparison of multiple methods under identical simulation conditions, including settings with random cluster sizes and non-exchangeable correlation.

Experimental results

Research questions

  • RQ1How do the RGL and DS methods perform in terms of empirical Type I error rate under various intracluster correlation structures, including AR1?
  • RQ2What is the impact of informative cluster sizes on the performance of rank-based tests for clustered data?
  • RQ3How do the power properties of the RGL and DS methods vary with increasing cluster size and decreasing intracluster correlation?
  • RQ4Can exact permutation tests within clusrank maintain nominal size under small sample and complex correlation structures?
  • RQ5How do the two methods compare in settings with random cluster sizes and non-exchangeable dependence, which are not covered by standard assumptions?

Key findings

  • The empirical Type I error rates for both the RGL and DS methods remained close to the nominal 0.05 level across all simulation settings, including under AR1 correlation where exchangeability assumptions were violated.
  • Empirical power increased with larger cluster sizes and lower intracluster correlation, with both methods showing similar performance under comparable conditions.
  • The DS method maintained valid Type I error control even under informative cluster sizes, where cluster size affects the distribution of paired differences.
  • The RGL method showed slightly reduced power under completely random cluster sizes compared to fixed mean cluster sizes, but remained robust in size control.
  • Permutation-based inference provided accurate p-values, especially in small-sample settings, with empirical sizes closely matching nominal levels.
  • In real ophthalmological data, the clusrank package successfully detected significant differences in visual acuity outcomes between treatment groups, demonstrating practical utility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.