/
two_samples.R
58 lines (42 loc) · 1.87 KB
/
two_samples.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This file builds the *_stat and *_test functions from the _stat_presort
# Build *_test functions ---------
#' @describeIn ks_test Permutation based two sample Kolmogorov-Smirnov test
#' @export
ks_test = permutation_test_builder(ks_stat_presort,1.0)
#' @describeIn kuiper_test Permutation based two sample Kuiper test
#' @export
kuiper_test = permutation_test_builder(kuiper_stat_presort,1.0)
#' @describeIn cvm_test Permutation based two sample Cramer-Von Mises test
#' @export
cvm_test = permutation_test_builder(cvm_stat_presort,2.0)
#' @describeIn ad_test Permutation based two sample Anderson-Darling test
#' @export
ad_test = permutation_test_builder(ad_stat_presort,2.0)
#' @describeIn wass_test Permutation based two sample test using Wasserstein metric
#' @export
wass_test = permutation_test_builder(wass_stat_presort,1.0)
#' @describeIn two_sample Permutation based two sample test
#' @export
dts_test = permutation_test_builder(dts_stat_presort,1.0)
#' @describeIn two_sample Recommended two-sample test
#' @export
two_sample = dts_test
# Build *_stat functions ----
#' @describeIn two_sample Permutation based two sample test
#' @export
dts_stat = stat_fn_builder( dts_stat_presort,1)
#' @describeIn wass_test Permutation based two sample test using Wasserstein metric
#' @export
wass_stat = stat_fn_builder( wass_stat_presort,1)
#' @describeIn kuiper_test Permutation based two sample Kuiper test
#' @export
kuiper_stat = stat_fn_builder(kuiper_stat_presort,1)
#' @describeIn ks_test Permutation based two sample Kolmogorov-Smirnov test
#' @export
ks_stat = stat_fn_builder( ks_stat_presort,1)
#' @describeIn cvm_test Permutation based two sample Cramer-Von Mises test
#' @export
cvm_stat = stat_fn_builder( cvm_stat_presort,2)
#' @describeIn ad_test Permutation based two sample Anderson-Darling test
#' @export
ad_stat = stat_fn_builder( ad_stat_presort,2)