Papers
Topics
Authors
Recent
Search
2000 character limit reached

generalRSS: Ranked Set Sampling Package

Updated 10 July 2026
  • generalRSS is an R package for ranked set sampling that supports both balanced (BRSS) and unbalanced (URSS) designs using inexpensive auxiliary variables to reduce measurement costs.
  • It integrates simulation, allocation optimization, and multiple inferential procedures (mean, median, proportion, AUC) to improve efficiency over simple random sampling.
  • The package employs methods like integer Neyman allocation and empirical likelihood to handle varying strata variances and adapt to skewed outcome distributions.

Searching arXiv for the specific topic and closely related ranked set sampling work to ground the article in current literature. generalRSS is an R package for sampling and inference under balanced ranked set sampling (BRSS) and unbalanced ranked set sampling (URSS). In this context, RSS denotes ranked set sampling rather than syndication or radio signal strength. The package is designed for settings in which measuring the study variable YY is expensive but an auxiliary variable XX is cheap and sufficiently correlated with YY to permit ranking. Its stated contribution is to extend RSS software beyond balanced designs by supporting RSS data generation, efficient URSS allocation strategies, and inferential procedures for means, medians, proportions, and two-sample area under the curve (AUC), with medical illustrations based on NHANES data (Moon et al., 2 Sep 2025).

1. Ranked set sampling as a stratified design

Ranked set sampling is presented in contrast to simple random sampling (SRS). Under SRS, one draws nn units at random, measures YY on all nn units, and uses Yˉ\bar{Y} to estimate the population mean. RSS modifies this workflow by repeatedly drawing sets of size HH, ranking units within each set using the auxiliary variable XX, and measuring YY on only one unit from each ranked set. The resulting design is stratified by rank. A standard RSS dataset is written as

XX0

where XX1 is the measured outcome, XX2 is the rank stratum, and XX3 is the set size, usually XX4 (Moon et al., 2 Sep 2025).

The package description emphasizes that RSS gains efficiency by using auxiliary information for ranking and stratification. The intuitive mechanism is variance reduction: units within a given rank stratum are more homogeneous in XX5 than a generic SRS draw, provided ranking quality is adequate. The common mean estimator under RSS is

XX6

and its variance is estimated by

XX7

Under suitable conditions, the estimator is unbiased for the population mean, and the package uses the corresponding asymptotic normal approximation for testing and interval estimation (Moon et al., 2 Sep 2025).

The formulation adopted by generalRSS treats rank strata as the fundamental analytic units. A cycle is one pass through all ranks XX8. In balanced designs each cycle contributes exactly one measured observation to every stratum; in unbalanced designs strata can receive unequal numbers of measurements. This distinction is central to the package’s scope.

2. Balanced and unbalanced ranked set sampling

BRSS assumes equal allocation across rank strata: XX9 so the total sample size is YY0. For YY1, one cycle consists of three separate sets of size three, from which the smallest, middle, and largest ranked units are measured in turn. After YY2 cycles, each rank stratum contains YY3 observations (Moon et al., 2 Sep 2025).

URSS relaxes this symmetry and allows

YY4

The paper describes URSS through incomplete cycles: strata that have reached their target allocation drop out, while remaining strata continue to be sampled. For YY5 with YY6, ranks YY7 are initially sampled together; after stratum 1 reaches YY8, only ranks 2 and 3 are sampled; after stratum 2 reaches YY9, only rank 3 continues (Moon et al., 2 Sep 2025).

The package positions URSS as particularly effective for skewed distributions. The rationale given is that variances can differ substantially across rank strata, so equal allocation need not be efficient. This suggests a direct analogy with classical stratified sampling: if strata contribute unequally to estimator variance, optimal or near-optimal designs should oversample the more informative ranks. In the paper’s framing, URSS is therefore not merely a relaxation of BRSS but a design class with its own allocation theory and inferential machinery.

3. Package structure and implemented functionality

generalRSS separates design, simulation, and inference. The package explicitly supports both continuous and binary outcomes, and it distinguishes between functions that operate on explicit populations and functions that simulate RSS data from parametric models (Moon et al., 2 Sep 2025).

Function group Functions Stated role
Sampling and simulation rss.sampling, rss.simulation, rss.prop.sampling, rss.prop.simulation Generate BRSS or URSS data for continuous or binary outcomes
Allocation design rss.design Compute efficient URSS allocations for mean or proportion settings
Inference rss.z.test, rss.t.test, rss.ELR.test, rss.sign.test, rss.prop.test, rss.AUC.test Mean, median, proportion, and AUC inference under RSS

The paper contrasts this functionality with existing RSS software, naming RSSampling, NSM3, RSStest, and RankedSetSampling as packages that are essentially restricted to balanced designs or a narrower inferential range. generalRSS is described as addressing this limitation by extending support to URSS in data generation, allocation, and inference (Moon et al., 2 Sep 2025).

The simulation interface includes a ranking-quality parameter nn0, with nn1 corresponding to perfect ranking and lower values representing ranking error. The available parametric families named in the paper are normal, nn2, and lognormal for continuous outcomes, and Bernoulli-type generation for binary outcomes. This makes the package a planning tool as well as an analysis tool: one can study design sensitivity to skewness, imperfect rankings, and unequal allocations before data collection.

4. Allocation theory for URSS

The package’s most distinctive methodological component is rss.design, which computes efficient URSS allocations. For mean estimation, the paper describes integer Neyman allocation, adjusted Neyman allocation, and LRC allocation. The classical Neyman principle is

nn3

where nn4 is the within-stratum standard deviation. In practice, generalRSS estimates these quantities from RSS data and returns an integer allocation satisfying the target total sample size approximately (Moon et al., 2 Sep 2025).

The paper gives a concrete illustration using YY6 which yields an original allocation nn5 and an Integer Neyman recommendation nn6. It then reports adjusted Neyman and LRC allocations: nn7 respectively. The adjusted Neyman design is described as requiring minimal additional sampling while preserving improved efficiency relative to BRSS; the LRC design may require more augmentation (Moon et al., 2 Sep 2025).

For binary outcomes, rss.design(..., prop = TRUE) implements Neyman allocation for proportion estimation. The reported example YY7 returns a non-integer recommendation close to

nn8

This reflects the package’s general strategy: unequal allocation is treated as an efficiency problem, not as a nuisance caused only by missing data.

5. Inferential procedures

The mean-based procedures rss.z.test and rss.t.test use the estimator nn9 and its estimated variance. The asymptotic pivot reported for the YY0-procedure is

YY1

while rss.t.test provides a small-sample alternative with estimated degrees of freedom (Moon et al., 2 Sep 2025).

For one-sample mean inference, the package also implements empirical likelihood through rss.ELR.test. The paper states that the resulting empirical likelihood ratio statistic YY2 is asymptotically YY3. This places generalRSS within the semiparametric empirical-likelihood literature rather than restricting it to normal approximations.

Median inference is handled by rss.sign.test. For BRSS the sign statistic is

YY4

with asymptotic distribution

YY5

where

YY6

For URSS, the paper gives the asymptotic form

YY7

with YY8 (Moon et al., 2 Sep 2025).

For binary outcomes, rss.prop.test uses

YY9

and a variance estimator

nn0

with

nn1

The corresponding confidence interval is

nn2

Two-sample ROC analysis is supported through rss.AUC.test. The target parameter is

nn3

and the paper states that empirical-likelihood inference for AUC yields an asymptotic nn4 likelihood-ratio statistic. This is one of the clearest examples of the package’s extension beyond mean estimation.

6. Medical data applications

The first application uses NHANES BMI data for one-sample mean inference. After removing duplicate IDs, the paper reports 6,779 unique individuals, a population mean BMI of nn5, and a BMI–Weight correlation of approximately nn6. An intended BRSS design with nn7 and allocation nn8 becomes URSS after missing BMI values, producing nn9. Applying rss.t.test to this observed URSS sample yields

Yˉ\bar{Y}0

with confidence interval

Yˉ\bar{Y}1

of length approximately Yˉ\bar{Y}2. After using rss.design and augmenting only the third rank stratum to obtain Yˉ\bar{Y}3, the updated analysis gives

Yˉ\bar{Y}4

with interval

Yˉ\bar{Y}5

of length approximately Yˉ\bar{Y}6. In a 500-replicate comparison, Original URSS, Updated RSS, and SRS yield coverage probabilities Yˉ\bar{Y}7, Yˉ\bar{Y}8, and Yˉ\bar{Y}9, with CI lengths HH0, HH1, and HH2, respectively (Moon et al., 2 Sep 2025).

The second application concerns two-sample AUC estimation for fasting plasma glucose in NHANES, using glycohemoglobin as the ranking variable and diabetes status as the grouping variable. The paper reports mean fasting plasma glucose HH3 for the non-diabetic group and HH4 for the diabetic group, with correlation approximately HH5 between glycohemoglobin and fasting plasma glucose, and a population AUC around HH6. Under BRSS with HH7 and HH8 in both groups, rss.AUC.test gives

HH9

with confidence interval

XX0

of length about XX1. Under URSS with allocations XX2 for the non-diabetic group and XX3 for the diabetic group, the estimate becomes

XX4

with interval

XX5

of length about XX6. A 500-replicate comparison reports coverage probabilities XX7, XX8, and XX9 for URSS, BRSS, and SRS, with CI lengths YY0, YY1, and YY2, respectively (Moon et al., 2 Sep 2025).

These examples are methodologically important because they illustrate two distinct uses of URSS. In the BMI study, URSS arises operationally from missingness in an intended BRSS design and is then improved by allocation adjustment. In the AUC study, URSS is chosen deliberately to oversample informative strata.

7. Methodological position and practical implications

generalRSS is situated as a package for both design and inference rather than as a narrow collection of test routines. Its stated contribution is to make URSS operational in ordinary data analysis by combining data generation, allocation optimization, and inferential procedures within one framework (Moon et al., 2 Sep 2025).

Several practical implications follow directly from the package design. First, BRSS is not treated as the universal default; URSS is presented as preferable when the distribution of YY3 is skewed, when rank-stratum variances differ, when missing data convert a balanced plan into an unbalanced sample, or when the inferential target is not the mean but a functional such as AUC. Second, the package assumes that ranking quality matters and therefore includes simulation support through the parameter YY4. Third, the implemented procedures range from normal and YY5-based approximations to empirical likelihood, which permits both classical and semiparametric workflows.

The article’s broader statistical message is that ranked set sampling should be understood as a flexible stratified design class. Balanced and unbalanced schemes share the same rank-stratum logic, but they differ sharply in efficiency when auxiliary information is strong and outcome distributions are asymmetric. generalRSS formalizes that distinction in software by making unequal allocation a first-class design variable rather than a post hoc correction.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to generalRSS.