Hypergeometric test (phyper)
问题 I've a question about the hypergeometric test. I've data like this : pop size : 5260 sample size : 131 Number of items in the pop that are classified as successes : 1998 Number of items in the sample that are classified as successes : 62 To compute a hypergeometric test, is that correct? phyper(62, 1998, 5260, 131) 回答1: Almost correct. If you look at ?phyper : phyper(q, m, n, k, lower.tail = TRUE, log.p = FALSE) x, q vector of quantiles representing the number of white balls drawn without