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

RSS

Ranked-Set Sample


Description

Function to obtain a ranked-set sample of given set size and number of cycles based on a specified auxiliary variable.

Usage

RSS(k,m,ranker)

Arguments

k

set size

m

number of cycles

ranker

auxiliary variable used for judgment ranking

Value

Returns a vector of the indices corresponding to the observations selected to be in the RSS.

Author(s)

Grant Schneider

Examples

##Simulate 100 observations of a response variable we are interested in 
##and an auxiliary variable we use for ranking

set.seed(1)
response<-rnorm(100)
auxiliary<-rnorm(100)

##Get the indices for a ranked-set sample with set size 3 and 2 cycles
RSS(2,3,auxiliary) #Tells us to measure observations 2, 19, 32,..., 91

##Alternatively, get the responses for those observations. 
##In practice, response will not be available ahead of time.
response[RSS(2,3,auxiliary)]

NSM3

Functions and Datasets to Accompany Hollander, Wolfe, and Chicken - Nonparametric Statistical Methods, Third Edition

v1.16
GPL-2
Authors
Grant Schneider, Eric Chicken, Rachel Becvarik
Initial release
2021-04-05

We don't support your browser anymore

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