def test_posthoc_tamhane_nw(self): r_results = np.array([[-1, 2.883219e-02, 4.780682e-08], [2.883219e-02, -1, 8.643683e-06], [4.780682e-08, 8.643683e-06, -1]]) results = sp.posthoc_tamhane(self.df.sort_index(), val_col = 'pulse', group_col = 'kind', welch = False) self.assertTrue(np.allclose(results, r_results))
def test_posthoc_tamhane(self): r_results = np.array([[-1, 2.898653e-02, 4.100954e-07], [2.898653e-02, -1, 2.333996e-05], [4.100954e-07, 2.333996e-05, -1]]) results = sp.posthoc_tamhane(self.df.sort_index(), val_col = 'pulse', group_col = 'kind') self.assertTrue(np.allclose(results, r_results))