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.7)twosamples_2.0.1.zip(r-4.6)twosamples_2.0.1.zip(r-4.5)
twosamples_2.0.1.tgz(r-4.6-x86_64)twosamples_2.0.1.tgz(r-4.6-arm64)twosamples_2.0.1.tgz(r-4.5-x86_64)twosamples_2.0.1.tgz(r-4.5-arm64)
twosamples_2.0.1.tar.gz(r-4.7-arm64)twosamples_2.0.1.tar.gz(r-4.7-x86_64)twosamples_2.0.1.tar.gz(r-4.6-arm64)twosamples_2.0.1.tar.gz(r-4.6-x86_64)
twosamples_2.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
twosamples/json (API)
NEWS

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

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

Pkgdown/docs site:https://twosampletest.com

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

On CRAN:

Conda:

distance-metricecdfcpp

7.53 score 17 stars 17 packages 91 scripts 8.7k downloads 14 exports 1 dependencies

Last updated from:b06cef27f5. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK135
linux-devel-x86_64OK153
source / vignettesOK152
linux-release-arm64OK103
linux-release-x86_64OK153
macos-release-arm64OK160
macos-release-x86_64OK320
macos-oldrel-arm64OK163
macos-oldrel-x86_64OK333
windows-develOK96
windows-releaseOK113
windows-oldrelOK83
wasm-releaseOK94

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