Package: twosamples 2.0.1

Connor Dowd

twosamples: Fast Permutation Based Two Sample Tests

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.

Authors:Connor Dowd [aut, cre]

twosamples_2.0.1.tar.gz
twosamples_2.0.1.zip(r-4.5)twosamples_2.0.1.zip(r-4.4)twosamples_2.0.1.zip(r-4.3)
twosamples_2.0.1.tgz(r-4.4-x86_64)twosamples_2.0.1.tgz(r-4.4-arm64)twosamples_2.0.1.tgz(r-4.3-x86_64)twosamples_2.0.1.tgz(r-4.3-arm64)
twosamples_2.0.1.tar.gz(r-4.5-noble)twosamples_2.0.1.tar.gz(r-4.4-noble)
twosamples_2.0.1.tgz(r-4.4-emscripten)twosamples_2.0.1.tgz(r-4.3-emscripten)
twosamples.pdf |twosamples.html
twosamples/json (API)
NEWS

# Install 'twosamples' in R:
install.packages('twosamples', repos = c('https://cdowd.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/cdowd/twosamples/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

distance-metricecdf

14 exports 17 stars 2.96 score 1 dependencies 8 dependents 34 scripts 5.5k downloads

Last updated 1 years agofrom:6472636591. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 08 2024
R-4.5-win-x86_64OKSep 08 2024
R-4.5-linux-x86_64OKSep 08 2024
R-4.4-win-x86_64OKSep 08 2024
R-4.4-mac-x86_64OKSep 08 2024
R-4.4-mac-aarch64OKSep 08 2024
R-4.3-win-x86_64OKSep 08 2024
R-4.3-mac-x86_64OKSep 08 2024
R-4.3-mac-aarch64OKSep 08 2024

Exports:ad_statad_testcombine.twosamplescvm_statcvm_testdts_statdts_testks_statks_testkuiper_statkuiper_testtwo_samplewass_statwass_test

Dependencies:cpp11

Readme and manuals

Help Manual

Help pageTopics
Anderson-Darling Testad_stat ad_test
Combine two objects of class 'twosamples'combine.twosamples
Cramer-von Mises Testcvm_stat cvm_test
Kolmogorov-Smirnov Testks_stat ks_test
Kuiper Testkuiper_stat kuiper_test
Permutation Test Builderpermutation_test_builder
Default plots for 'twosamples' objectsplot.twosamples
twosamples_classprint.twosamples summary.twosamples twosamples_class
DTS Testdts_stat dts_test two_sample
Wasserstein Distance Testwass_stat wass_test