version 2.0.0

This is a large update. Three big changes:

  1. Substantial speed improvements – should improve both absolute speed and scaling
  2. Added generics for plot, summary, print.
  3. Switched from the package Rcpp to cpp11 for the backend. This removes a runtime dependency on Rcpp, but adds one on C++11 and adds a compile time dependency on cpp11.

Together, all this lead to many changes under the hood. As a consequence, permutation_test_builder is substantially different (and no longer exported), and order_stl no longer exists.

Speed

Each run of a *_test function now only sorts the data one time. Denoting the joint sample size N and the number of bootstraps K, this update moves the code from \[O(KN\log(N))\] to \[O(KN)+O(N \log(N))\].

Classes

There is now a ‘twosamples’ class, and generics for print, summary, and plot, as well as a function for combining outputs correctly. This should make the printed behavior much better. As well as making it easy to see a fair bit of information using summary.

Possible breaking changes

version 1.2.0

This version is primarily bug fixes and documentation updates. These bug fixes may affect outputs users see.

Summary

I expect this update to be purely cosmetic for the vast majority of users. - For a few users of ad_test or cvm_test it is possible that re-running code will make significant differences to conclusions. - For the rare users of ad_test or dts_test (aka two_sample) who relied on the scale of the test stat (rather than merely the p-value), this update will change outputs substantially. In principal this change is merely re-scaling everything by \((n^p)/(2^{p/2})\).

Main code changes:

Some documentation changes:

Some development oriented changes:

version 1.1.1

This update is only fixing up documentation. Fixes a bug that lead to poor formatting, improves formatting of equations, adds graphs for test statistics, adds links between help pages. See v1.1.0 for recent improvements to codebase.

version 1.1.0

This update is primarily fixing a bug which meant that the test stat sorting routine was O(N^2), not O(Nlog(N)).

Major Updates

Minor Updates

version 1.0.0

The package has been released. The package includes test statistic functions (written in C++) for the following two-sample distance measures:

Each test statistic also has a corresponding permutation test function.

In addition there are two functions: