Skip to content

twosamples

Fast Permutation Based Two Sample Tests

v2.0.1 · Jun 23, 2023 · GPL (>= 2)

Description

Fast randomization based two sample tests. Testing the hypothesis that two samples come from the same distribution using randomization to create p-values. Included tests are: Kolmogorov-Smirnov, Kuiper, Cramer-von Mises, Anderson-Darling, Wasserstein, and DTS. The default test (two_sample) is based on the DTS test statistic, as it is the most powerful, and thus most useful to most users. The DTS test statistic builds on the Wasserstein distance by using a weighting scheme like that of Anderson-Darling. See the companion paper at <arXiv:2007.01360> or <https://codowd.com/public/DTS.pdf> for details of that test statistic, and non-standard uses of the package (parallel for big N, weighted observations, one sample tests, etc). We also include the permutation scheme to make test building simple for others.

Downloads

8.2K

Last 30 days

1360th

26.1K

Last 90 days

118.8K

Last year

Trend: -0.4% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Connor Dowd <cd@codowd.com>’

The Description field contains
  that of Anderson-Darling. See the companion paper at <arXiv:2007.01360>
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Connor Dowd <cd@codowd.com>’

The Description field contains
  that of Anderson-Darling. See the companion paper at <arXiv:2007.01360>
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Connor Dowd <cd@codowd.com>’

The Description field contains
  that of Anderson-Darling. See the companion paper at <arXiv:2007.01360>
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Connor Dowd <cd@codowd.com>’

The Description field contains
  that of Anderson-Darling. See the companion paper at <arXiv:2007.01360>
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.

Reverse Dependencies (7)

Dependency Network

Dependencies Reverse dependencies CAST ieTest opImputation opdisDownsampling FRESA.CAD mlr3spatiotempcv wmwAUC twosamples

Version History

new 2.0.1 Mar 10, 2026
updated 2.0.1 ← 2.0.0 diff Jun 22, 2023
updated 2.0.0 ← 1.2.0 diff Jul 11, 2022
updated 1.2.0 ← 1.1.1 diff Jun 6, 2022
updated 1.1.1 ← 1.1.0 diff Jul 18, 2020
updated 1.1.0 ← 1.0.0 diff Jul 13, 2020
new 1.0.0 Dec 2, 2018