坐山雕

导航

binom_test

bt <- function(a, b, p = 0.5) {binom.test(a, b+a, 0.5, alternative=
c("two.sided"), conf.level = 0.95)$p.value}

counts$pVal <- mapply(bt, counts$small, counts$Sum)

posted on 2021-04-28 16:13  坐山雕  阅读(147)  评论(0编辑  收藏  举报