在经过一些成对测试后,Python 中是否存在任何东西来获取字母,例如在 R 包 multcompView 中有来自 Piepho 2004 的 multcompLetter:https ://www.jstor.org/stable/1391186 ?
基本上,我有很多来自测试的成对布尔值,并且想基于 Python 构建我的字母。
编辑。
所以我想生成第二个图中的字母:https ://www.r-graph-gallery.com/84-tukey-test/
这是我测试后的数据示例:
df = pd.DataFrame([[ 0.13 ], [ 0.094], [ 0.68 ],[ 0.042],[ 0.],[ 0.091],[ 0. ],[ 0.05 ],[ 0.225],[ 0.029]],index = ['d1-d2','d1-d3','d1-d4', 'd1-d5', 'd2-d3', 'd2-d4', 'd2-d5', 'd3-d4', 'd3-d5', 'd4-d5'],columns = ['p-value'])