@@ -122,28 +122,28 @@ def test_unpaired_ci(reps=30, ci=95):
122122 error_count_cliffs_delta = 0
123123
124124 for i in range (0 , reps ):
125+ # print(i) # for debug.
125126 # pick a random seed
126127 rnd_sd = np .random .randint (0 , 999999 )
127128 load_kwargs = dict (ci = ci , random_seed = rnd_sd )
128129
129-
130-
131130 std_diff_data = load (data = std_diff_df , idx = ("Control" , "Test" ), ** load_kwargs )
132-
133131 cd = std_diff_data .cohens_d .results
132+ # print("cohen's d") # for debug.
134133 cd_low , cd_high = float (cd .bca_low ), float (cd .bca_high )
135134 if cd_low < POP_D < cd_high is False :
136135 error_count_cohens_d += 1
137136
138137 hg = std_diff_data .hedges_g .results
138+ # print("hedges' g") # for debug.
139139 hg_low , hg_high = float (hg .bca_low ), float (hg .bca_high )
140140 if hg_low < POP_D < hg_high is False :
141141 error_count_hedges_g += 1
142142
143143
144-
145144 mean_diff_data = load (data = mean_df , idx = ("Control" , "Test" ), ** load_kwargs )
146145 mean_d = mean_diff_data .mean_diff .results
146+ # print("mean diff") # for debug.
147147 mean_d_low , mean_d_high = float (mean_d .bca_low ), float (mean_d .bca_high )
148148 if mean_d_low < TRUE_DIFFERENCE < mean_d_high is False :
149149 error_count_mean_diff += 1
@@ -152,14 +152,16 @@ def test_unpaired_ci(reps=30, ci=95):
152152 median_diff_data = load (data = median_df , idx = ("Control" , "Test" ),
153153 ** load_kwargs )
154154 median_d = median_diff_data .median_diff .results
155+ # print("median diff") # for debug.
155156 median_d_low , median_d_high = float (median_d .bca_low ), float (median_d .bca_high )
156157 if median_d_low < MEDIAN_DIFFERENCE < median_d_high is False :
157158 error_count_median_diff += 1
158159
159160
160161 cd_data = load (data = cd_df , idx = ("Control" , "Test" ), ** load_kwargs )
161- cd = cd_data .cliffs_delta .results
162- low , high = float (cd .bca_low ), float (cd .bca_high )
162+ cliffs = cd_data .cliffs_delta .results
163+ # print("cliff's delta") # for debug.
164+ low , high = float (cliffs .bca_low ), float (cliffs .bca_high )
163165 if low < 0.5 < high is False :
164166 error_count_cliffs_delta += 1
165167
0 commit comments