【发布时间】:2018-02-27 06:35:03
【问题描述】:
在这篇帖子https://stats.stackexchange.com/questions/94909/course-of-action-for-2x2-tables-with-0s-in-cell-and-low-cell-counts 中,OP 说他/她在对以下数据进行 Fisher 精确检验时得到了 p 值 0.5152:
Control Cases
A 8 0
B 14 0
但我得到的数据是 p 值 = 1 和优势比 = 0。我的 R 代码是:
a <- matrix(c(8,14,0,0),2,2)
(res <- fisher.test(a))
我哪里做错了?
【问题讨论】:
标签: r statistics contingency