compute_p_value | R Documentation |
Compute the probability of drawing no positives in a sample of n items from a Population of N containing n_dis positives.
compute_p_value(N, n, n_dis)
N |
Integer; size of the population |
n |
Integer; size of the sample |
n_dis |
Integer; number of positives in the population |
The probability is computed using the hypergeometric distribution. This
function is used in compute_sample_size
.
Returns the probability of not finding any positives in the sample as a numeric between 0 and 1
Ian Kopacka
compute_sample_size
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.