Skip to content

Commit

Permalink
Merge d7fdbc7 into f02c180
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed Nov 5, 2020
2 parents f02c180 + d7fdbc7 commit 254f8d4
Show file tree
Hide file tree
Showing 43 changed files with 11,999 additions and 12,517 deletions.
2 changes: 1 addition & 1 deletion src/cr/cube/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ class DIMENSION_TYPE(object):

# ---allowed types for pairwise comparison---
ALLOWED_PAIRWISE_TYPES = frozenset(
(BINNED_NUMERIC, CAT, CA_CAT, DATETIME, MR, TEXT)
(BINNED_NUMERIC, CA, CAT, CA_CAT, DATETIME, MR, TEXT)
)
5 changes: 5 additions & 0 deletions tests/expectations/ca-subvar-x-cat-hs-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
[2.04087876e-01, 1.00000000e00, 5.61686813e-02, 5.61686813e-02, 5.83524533e-01],
[6.60280804e-01, 1.00000000e00, 3.87961906e-01, 5.61686813e-02, 8.51012165e-01],
[1.33519650e-01, 1.00000000e00, 7.95587544e-01, 8.48841390e-04, 6.61368183e-01],
]
5 changes: 5 additions & 0 deletions tests/expectations/ca-subvar-x-cat-hs-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
[1.35873244, 0.0, -2.19089023, -2.19089023, 0.55829053],
[-0.45291081, 0.0, 0.90716763, -2.19089023, -0.19054822],
[-1.63299316, 0.0, 0.26686442, 4.89897949, -0.44536177],
]
11 changes: 11 additions & 0 deletions tests/expectations/cat-hs-x-mr-wgtd-aug-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
[9.76839276e-10, 1.00000000e00, 0.00000000e00],
[1.55431223e-14, 1.00000000e00, 0.00000000e00],
[1.28612265e-08, 1.00000000e00, 0.00000000e00],
[1.67441552e-01, 1.00000000e00, 3.96622408e-07],
[1.24942021e-01, 1.00000000e00, 1.51478682e-04],
[3.73949987e-04, 1.00000000e00, 0.00000000e00],
[2.49833210e-08, 1.00000000e00, 6.39580235e-08],
[8.23819611e-01, 1.00000000e00, 4.74757203e-02],
[2.91411313e-08, 1.00000000e00, 1.81814095e-08],
]
11 changes: 11 additions & 0 deletions tests/expectations/cat-hs-x-mr-wgtd-aug-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
[6.11927895, 0.0, -14.1303337],
[-7.69445366, 0.0, 12.49573404],
[5.69285527, 0.0, -11.74466913],
[1.38057613, 0.0, -5.07435061],
[-1.53449069, 0.0, 3.79025526],
[-3.55908594, 0.0, 9.3099453],
[-5.57805647, 0.0, 5.41192963],
[0.22264108, 0.0, 1.98230386],
[-5.55112327, 0.0, 5.63360373],
]
41 changes: 41 additions & 0 deletions tests/expectations/cat-x-cat-hs-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[
[
1.00000000e00,
9.50744855e-01,
7.61580875e-01,
1.45494511e-03,
1.35271514e-04,
2.75262668e-03,
9.40575477e-01,
4.90755141e-01,
3.16822332e-03,
6.38672254e-01,
3.44275537e-05,
],
[
1.00000000e00,
2.34589189e-01,
7.02082945e-01,
8.84605265e-04,
5.67562813e-04,
5.94375533e-03,
5.53862215e-01,
3.88027539e-01,
1.11098015e-02,
2.71039211e-01,
7.25442977e-04,
],
[
1.00000000e00,
8.78852262e-02,
3.51831360e-01,
3.82131035e-01,
8.03255937e-01,
8.12841336e-01,
3.31271828e-01,
7.00272311e-01,
9.68813218e-01,
3.04581978e-01,
8.43264694e-01,
],
]
41 changes: 41 additions & 0 deletions tests/expectations/cat-x-cat-hs-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[
[
0.0,
-0.06178448,
0.30342874,
-3.18865018,
-3.82130608,
-2.99560531,
0.07456344,
-0.68932699,
-2.95469238,
-0.46970468,
-4.14956044,
],
[
0.0,
1.18922394,
0.38254102,
3.3306654,
3.45013209,
2.7520633,
0.59216241,
0.86352416,
2.54171145,
1.10130414,
3.3839919,
],
[
0.0,
-1.7080666,
-0.931165,
-0.87419923,
-0.24915622,
-0.2367748,
-0.97198009,
-0.38504801,
-0.03910193,
-1.02720423,
0.19773989,
],
]
13 changes: 13 additions & 0 deletions tests/expectations/cat-x-cat-hs-scale-means-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
1.00000000e00,
4.80680137e-01,
9.46191784e-01,
3.31862965e-04,
3.31301800e-05,
1.10780471e-03,
7.63968024e-01,
4.02022180e-01,
2.52958600e-03,
3.91811876e-01,
2.03020376e-05,
]
13 changes: 13 additions & 0 deletions tests/expectations/cat-x-cat-hs-scale-means-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
0.0,
-0.70543134,
-0.06749456,
-3.59627589,
-4.15672996,
-3.26353764,
-0.30034779,
-0.8383222,
-3.02379687,
-0.85672124,
-4.26974185,
]
12 changes: 12 additions & 0 deletions tests/expectations/cat-x-cat-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
[0.3543704462583741, 0.2854486628456121, 1],
[0.0137065536277976, 0.1450553643559893, 1],
[0.0000078991077082, 0.898495781851322, 1],
[0.4090774528587606, 0.2737382169902576, 1],
[0.0020173609289613, 0.9607993020139403, 1],
[0.0845124966799853, 0.6867680056298973, 1],
[0.5263071263993964, 0.8291359554655602, 1],
[0.093569693339443, 0.6366499668820378, 1],
[0.2390913772747494, 0.5068305468138976, 1],
[0.0001845038553001, 0.4693091017156237, 1],
]
12 changes: 12 additions & 0 deletions tests/expectations/cat-x-cat-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
[0.926265419379764, -1.06821799614525, 0],
[2.46608073666841, 1.45733791450049, 0],
[4.47444356884568, -0.127565104025694, 0],
[-0.825615066069789, 1.09455611515513, 0],
[-3.08993537423754, 0.0491518359221346, 0],
[1.72556180249472, 0.403257023461294, 0],
[0.633715242008222, -0.215815666049458, 0],
[-1.67730697176792, -0.472402692576022, 0],
[1.17745694642709, 0.663805453182429, 0],
[-3.74325301090516, -0.723631945942289, 0],
]
7 changes: 7 additions & 0 deletions tests/expectations/cat-x-cat-wgtd-pw-indices.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
[(), (), (), ()],
[(), (), (), ()],
[(), (), (), ()],
[(), (), (), ()],
[(2, 3), (), (), ()],
]
7 changes: 7 additions & 0 deletions tests/expectations/cat-x-cat-wgtd-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
[1.0, 0.1673820620286901, 0.37579738470724267, 0.16373028998420036],
[1.0, 0.8493616019040273, 0.7575734897713429, 0.6903959137827367],
[1.0, 0.9700615941125716, 0.20566822638024163, 0.7160606992310101],
[1.0, 0.23747780923355655, 0.30821629616167123, 0.17970733830083074],
[1.0, 0.0839987707197456, 0.015862691173528676, 0.002723927327002773],
]
7 changes: 7 additions & 0 deletions tests/expectations/cat-x-cat-wgtd-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
[0.0, 1.3892930788974391, 0.8869425734660505, 1.402945620973322],
[0.0, 0.1903540333363253, 0.30894158244285624, 0.3994739596013725],
[0.0, 0.03761142927757482, 1.2682277741610029, 0.36476016345069556],
[0.0, -1.187392798652706, -1.0206496663686406, -1.35111583891054],
[0.0, -1.742783579889951, -2.425391682127969, -3.0738474093706927],
]
4 changes: 4 additions & 0 deletions tests/expectations/mr-subvar-x-mr-aug-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
[1.00000000e00, 0.00000000e00, 0.00000000e00],
[1.00000000e00, 5.42792478e-11, 0.00000000e00],
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
[0.82707248, 0.86881078, 0.56294105],
[0.86881078, 0.85960427, 0.61504991],
[0.56294105, 0.61504991, 0.63206628],
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
[0.17292752, 0.13118922, 0.43705895],
[0.13118922, 0.14039573, 0.38495009],
[0.43705895, 0.38495009, 0.36793372],
]
1 change: 1 addition & 0 deletions tests/expectations/mr-subvar-x-mr-aug-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[[0.0, 16.02651373, -22.43766743], [0.0, -6.56624439, 29.71952066]]
7 changes: 7 additions & 0 deletions tests/expectations/mr-x-mr-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
[0.42416402, 1.0, 0.02645888],
[0.54427888, 1.0, 0.03130077],
[0.23018433, 1.0, 0.88480775],
[0.11149176, 1.0, 0.66689419],
[0.08853052, 1.0, 0.12423633],
]
7 changes: 7 additions & 0 deletions tests/expectations/mr-x-mr-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
[-0.80066287, 0.0, -2.22179624],
[-0.60726974, 0.0, -2.1554303],
[1.203117, 0.0, 0.14490412],
[1.59774062, 0.0, 0.43050695],
[-1.71054946, 0.0, 1.53817055],
]
7 changes: 7 additions & 0 deletions tests/expectations/mr-x-mr-wgtd-aug-pw-pvals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
[0.0, 1.00000000e00, 0.0],
[0.0, 1.00000000e00, 0.0],
[1.19015908e-13, 1.00000000e00, 1.94264286e-02],
[0.0, 1.00000000e00, 0.0],
[3.35015757e-02, 1.00000000e00, 0.0],
]
7 changes: 7 additions & 0 deletions tests/expectations/mr-x-mr-wgtd-aug-pw-tstats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
[-10.2964264, 0.0, -20.09577285],
[-16.38251357, 0.0, -28.57841019],
[-7.42875194, 0.0, 2.33766663],
[-10.88338158, 0.0, -22.45002834],
[-2.12632668, 0.0, -11.07466431],
]
Loading

0 comments on commit 254f8d4

Please sign in to comment.