CochranMod | R Documentation |
Computes a sample size for small populations
CochranMod(no,N)
no |
Computed value using the Cochran Formula |
N |
Population of the study |
Computes an adjusted sample size derived from Cochran's sample size recommendation for small populations
Returns a vector which is the adjusted sample for the given population rounded up with ceiling function.
Commonly used z-scores: r = 0.90; z-score = 1.645 | r = 0.95; z-score = 1.96 | r = 0.98; z-score = 2.326 | r = 0.99; z-score = 2.576 |
Paolo G. Hilado
Cochran, W.G. (1963). Sampling Techniques, 2nd Ed., New York: John Wiley and Sons, Inc.
CochranMod(289, 800) [1] 213 ## The function is currently defined as CochranMod <- function(no, N){ x <- no -1 y <- x / N z <- 1 + y n <- no / z n <- ceiling(n) print(n) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.