Repository navigation
Fixed bug with shifting at zero value in contingency table - #3603
evgenyzhurko wants to merge 2 commits into
Conversation
| [3, 0.5, 4], | ||
| [5, 6, 0.5]], dtype=np.float64) | ||
| assert_equal(ctab.Table(t, shift_zeros=True).table, r) | ||
|
|
There was a problem hiding this comment.
add an assert here that checks the default.
assert_equal(ctab.Table(t).table, r)
|
@evgenyzhurko Thanks, PR looks good to me. One extra assert for the default. One open question is whether we want to extend the options for zeros or continuity corrections, and what the default should be. But I don't know yet what would be useful. (One general possibility which doesn't fit the class structure so well is to put corrections into individual hypothesis tests or similar methods instead of changing the underlying contingency table.) @kshedden any opinion on this? |
|
@kshedden I would like to have a decision on the default handling of zeros for 0.9 (given that it is the first release after contingency table was introduced) |
#3579