runSampDesign {asbio} | R Documentation |
Compares outcomes of simple random sampling, stratified random sampling and cluster sampling
runSampDesign(n = 20)
n |
The number of samples to be randomly selected from a population of 400. |
Returns a plot comparing outcomes of random sampling, stratified random sampling and cluster sampling from a population
of size 400. For startified random sampling the population is subdivided into four equally strata of size 100.
and n
/4 samples are taken within each strata. For cluster sampling the population is subdivided into four
equally sized clusters and a census is taken from two clusters (regardless of specification of n
).
A plot is returned.
Ken Aho
runSampDesign(20)