Learn R Programming

RSSampling (version 1.0)

rss: Selecting classical ranked set sample

Description

The rss function samples from a target population by using ranked set sampling method.

Usage

rss(X,m,r=1,sets=FALSE)

Arguments

X

A vector of target population

m

Size of units in each set

r

Number of cycles. (By default=1)

sets

logical; if TRUE, ranked set samples are given with ranked sets (see rankedsets)

Value

sets

randomly chosen ranked sets

sample

the obtained ranked set sample of X

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.

See Also

con.rss

Examples

Run this code
# NOT RUN {
data=rnorm(10000,1,3)
## Selecting classical ranked set sample with set size \emph{m} and cycle size \emph{r}
rss(data,m=5,r=3,sets=TRUE)
# }

Run the code above in your browser using DataLab