sample.strat {animation} | R Documentation |
Every rectangle stands for a stratum, and the simple random sampling without replacement is performed within each stratum. The points being sampled are marked by red circles.
sample.strat(pop = ceiling(10 * runif(10, 0.5, 1)), size = ceiling(pop * runif(length(pop), 0, 0.5)), control = ani.control(interval = 0.2), ...)
pop |
a vector for the size of each stratum in the population. |
size |
a corresponding vector for the sample size in each stratum (recycled if necessary). |
control |
control parameters for the animation; see ani.control |
... |
other arguments passed to ani.control |
None (invisible `NULL
').
Yihui Xie
Cochran, W G (1977) Sampling Techniques, Wiley, ISBN 0-471-16240-X
sample.strat() ## Not run: # HTML animation page ani.start() sample.strat(pop = sample(15, 5), saveANI = TRUE) ani.stop() ## End(Not run)