Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SRS

Simple Random Sampling


Description

Computes all possible samples from a given population using simple random sampling.

Usage

SRS(POPvalues, n)

Arguments

POPvalues

vector containing the poulation values.

n

the sample size.

Value

Returns a matrix containing the possible simple random samples of size n taken from a population POPvalues.

Author(s)

Alan T. Arnholt

See Also

Examples

SRS(c(5,8,3),2)
    # The rows in the matrix list the values for the 3 possible
    # simple random samples of size 2 from the population of 5,8, and 3.

BSDA

Basic Statistics and Data Analysis

v1.2.0
GPL (>= 2)
Authors
Alan T. Arnholt [aut, cre], Ben Evans [aut]
Initial release
2017-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.