Ranked-Set Sample
Function to obtain a ranked-set sample of given set size and number of cycles based on a specified auxiliary variable.
RSS(k,m,ranker)
k |
set size |
m |
number of cycles |
ranker |
auxiliary variable used for judgment ranking |
Returns a vector of the indices corresponding to the observations selected to be in the RSS.
Grant Schneider
##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)]
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.