I encountered the current error when running continuous_results. The package works for categorical_results. Why this is happening?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/tracy/Downloads/pymatch-master/pymatch/Matcher.py", line 313, in compare_continuous
# before/after stats
File "/Users/tracy/Downloads/pymatch-master/pymatch/functions.py", line 79, in grouped_permutation_test
truth = f(t, c)
File "/Users/tracy/Downloads/pymatch-master/pymatch/functions.py", line 54, in chi2_distance
tb, cb = bin_hist(tb, cb, bins)
File "/Users/tracy/Downloads/pymatch-master/pymatch/functions.py", line 75, in bin_hist
return idx_to_value(tc, bins), idx_to_value(cc, bins)
File "/Users/tracy/Downloads/pymatch-master/pymatch/functions.py", line 72, in idx_to_value
result[int(bins[k-1])] = v
IndexError: index -1 is out of bounds for axis 0 with size 0
I encountered the current error when running continuous_results. The package works for categorical_results. Why this is happening?