R 中的精确 Cochran Q 检验

Exact Cochran's Q test in R

我需要 运行 小样本量的 Cochran 检验。我阅读了 "If your sample size is inadequate, the asymptotic p-value may not be accurate, but you can run an " 精确版本的 Cochran Q 检验,它将生成更准确的精确 p 值”(here)。

R 的“nonpar”包提供了不同的测试,在许多情况下,如果想要避免近似,可以使用选项 exact= TRUE。但是,cochrans.q() 函数没有这样的选项。我如何知道 cochrans.q() 中使用的是近似法还是精确法?

我不确定是post这里的问题还是交叉验证。所以请迁移问题是否应该转到 SO。

它使用渐近逼近。在(just type cochrans.q)的源代码中可以看到,因为它包含

p = 1 - pchisq(Q, df)