Learn R Programming

RSSampling (version 1.0)

rankedsets: Selecting ranked sets

Description

The rankedsets function selects ranked sets from a target population. The selection of units in a set is without replacement, but the sets are selecting with replacement.

Usage

rankedsets(X,m,s=m)

Arguments

X

A vector of target population

m

Size of units in each set

s

Number of sets. (by default = m)

Value

It returns a matrix of ranked sets.

Details

Target population X must be a vector.

References

McIntyre, G. A. (1952). A method for unbiased selective sampling, using ranked sets. Australian Journal of Agricultural Research, 3(4), 385-390.

Examples

Run this code
# NOT RUN {
  data=rexp(10000,3)
  ## Creating m by m matrix (a regular cycle)
  rankedsets(data,m=5)
  ## Creating m by s matrix
  rankedsets(data,m=3,s=5)

# }

Run the code above in your browser using DataLab