Skip to content

stratifyR

Optimal Stratification of Univariate Populations

v1.0-5 · Jun 23, 2026 · GPL-2

Description

The stratification of univariate populations under stratified sampling designs is implemented according to Khan et al. (2002) <doi:10.1177/0008068320020518> and Khan et al. (2015) <doi:10.1080/02664763.2015.1018674> in this library. It determines the Optimum Strata Boundaries (OSB) and Optimum Sample Sizes (OSS) for the study variable, y, using the best-fit frequency distribution of a survey variable (if data is available) or a hypothetical distribution (if data is not available). The method formulates the problem of determining the OSB as mathematical programming problem which is solved by using a dynamic programming technique. If a dataset of the population is available to the surveyor, the method estimates its best-fit distribution and determines the OSB and OSS under Neyman allocation directly. When the dataset is not available, stratification is made based on the assumption that the values of the study variable, y, are available as hypothetical realizations of proxy values of y from recent surveys. Thus, it requires certain distributional assumptions about the study variable. At present, it handles stratification for the populations where the study variable follows a continuous distribution, namely, Pareto, Triangular, Right-triangular, Weibull, Gamma, Exponential, Uniform, Normal, Log-normal and Cauchy distributions.

Downloads

CRAN

98

Last 30 days

24066th

99

Last 90 days

118

Last year

Trend: +999%+ (30d vs prior 30d)

r2u CRAN

35

Last 30 days

112

Last 90 days

407

Last year

Trend: -14.6% (30d vs prior 30d)

CRAN Check Status

12 OK
Show all 12 flavors
Flavor Status
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 8 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 24, 2026

Dependency Network

Dependencies Reverse dependencies fitdistrplus zipfR triangle mc2d actuar crayon kableExtra stratifyR

Version History

5 tracked
new 1.0-5 Jun 23, 2026
update 1.0-4 ← 1.0-3 diff Feb 22, 2025
update 1.0-3 ← 1.0-2 diff Dec 6, 2021
update 1.0-2 ← 1.0-1 diff Sep 26, 2019
new 1.0-1 Apr 11, 2018