Kornbrot's Rank Difference Test

Implements Kornbrot's rank difference test as described in . This method is a modified Wilcoxon signed-rank test which produces consistent and meaningful results for ordinal or monotonically-transformed data.


rankdifferencetest

Overview

rankdifferencetest provides a modified Wilcoxon signed-rank test which produces consistent and meaningful results for ordinal or monotonically transformed data. The procedure was described by Diana Kornbrot in https://doi.org/10.1111/j.2044-8317.1990.tb00939.x

Installation

# Install from CRAN
install.packages("rankdifferencetest")

# Or the development version from bitbucket
remotes::install_bitbucket("bklamer/rankdifferencetest")

Examples

# See ?rdt and ?kornbrot_table1
library(rankdifferencetest)

res <- rdt(
  data = kornbrot_table1,
  formula = placebo ~ drug,
  conf_level = 0.95,
  alternative = "two.sided",
  distribution = "asymptotic",
  zero_method = "wilcoxon",
  correct = TRUE
)
res
#> 
#> asymptotic Kornbrot-Wilcoxon rank difference test
#> 
#> p = 0.262
#> Z = 1.12
#> Paired differences of ranks: placebo - drug
#> Alternative hypothesis: True location shift of paired
#> differences of ranks is not equal to 0
#> 
#> Pseudomedian: 1.5
#> 95% CI: -2.5, 6

License

Copyright: Brett Klamer - 2021 - GPL-3 (https://opensource.org/license/gpl-3-0)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rankdifferencetest")

2025.12.4 by Brett Klamer, 10 months ago


https://brettklamer.com/work/rankdifferencetest, https://bitbucket.org/bklamer/rankdifferencetest


Browse source code at https://github.com/cran/rankdifferencetest


Authors: Brett Klamer [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports Rdpack, stats, exactRankTests, Hmisc, boot, generics

Suggests tinytest, rmarkdown, tibble, coin


See at CRAN