SRS | R Documentation |
Computes all possible samples from a given population using simple random sampling
SRS(popvalues, n)
popvalues |
are values of the population. |
n |
the sample size |
If non-finite values are entered as part of the population, they are removed; and the returned simple random sample computed is based on the remaining finite values.
The function srs()
returns a matrix containing the possible simple random samples of size n
taken from a population of finite values popvalues
.
Alan T. Arnholt <arnholtat@appstate.edu>
combn
SRS(popvalues = c(5, 8, 3, NA, Inf), n = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.