Yamane | R Documentation |
Estimation of sample size using the Yamane Formula; this function enables users to specify the desired level of precision / sampling error
Yamane(x,y)
x |
Population to be used for computation of Sample |
y |
Error Tolerance |
Returns a vector which is the computed sample for the given population rounded up with ceiling function.
Paolo G. Hilado
Yamane, T. (1967). Statistics, An Introductory Analysis, 2nd Ed., New York: Harper and Row.
Yamane(500,0.05) [1] 223 Yamane(500,0.01) [1] 477 ## The function is currently defined as Yamane <- function(x,y){ a <- x/(1 + x*y^2) b <- ceiling(a) print(b) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.