robnptests: Robust Nonparametric Two-Sample Tests for Location/Scale

Implementations of several robust nonparametric two-sample tests for location or scale differences. The test statistics are based on robust location and scale estimators, e.g. the sample median or the Hodges-Lehmann estimators as described in Fried & Dehling (2011) <doi:10.1007/s10260-011-0164-1>. The p-values can be computed via the permutation principle, the randomization principle, or by using the asymptotic distributions of the test statistics under the null hypothesis, which ensures (approximate) distribution independence of the test decision. To test for a difference in scale, we apply the tests for location difference to transformed observations; see Fried (2012) <doi:10.1016/j.csda.2011.02.012>. Random noise on a small range can be added to the original observations in order to hold the significance level on data from discrete distributions. The location tests assume homoscedasticity and the scale tests require the location parameters to be zero.

Version: 1.1.0
Depends: R (≥ 4.0.0)
Imports: Rdpack, gtools, robustbase, statmod, stats, utils, checkmate
Suggests: testthat, knitr, rmarkdown, usethis, covr
Published: 2023-02-13
DOI: 10.32614/CRAN.package.robnptests
Author: Sermad Abbas ORCID iD [aut, cre], Barbara Brune ORCID iD [aut], Roland Fried ORCID iD [aut]
Maintainer: Sermad Abbas <abbas at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: README NEWS
CRAN checks: robnptests results


Reference manual: robnptests.pdf
Vignettes: Construction of the M-tests
Getting started with 'robnptests'


Package source: robnptests_1.1.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): robnptests_1.1.0.tgz, r-oldrel (arm64): robnptests_1.1.0.tgz, r-release (x86_64): robnptests_1.1.0.tgz, r-oldrel (x86_64): robnptests_1.1.0.tgz
Old sources: robnptests archive


Please use the canonical form to link to this page.