Package: stratifyR 1.0-5

Karuna G. Reddy

stratifyR: Optimal Stratification of Univariate Populations

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.

Authors:Karuna G. Reddy [aut, cre], M. G. M. Khan [aut]

stratifyR_1.0-5.tar.gz
stratifyR_1.0-5.tar.gz(r-4.7-any)stratifyR_1.0-5.tar.gz(r-4.6-any)
stratifyR_1.0-5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
stratifyR/json (API)
NEWS

# Install 'stratifyR' in R:
install.packages('stratifyR', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:
  • anaemia - Micronutrient data on Anaemia in Fiji
  • hies - Household Income Expenditure Survey (HIES) in Fiji
  • math - Mathematics Marks for First-year University Students
  • sugarcane - Sugarcane Farming Data in Fiji

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.15 score 28 scripts 73 downloads 2 exports 112 dependencies

Last updated from:1c511ec868. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK190
source / vignettesOK308
linux-release-x86_64OK175
wasm-releaseOK177

Exports:strata.datastrata.distr

Dependencies:abindactuarbackportsbase64encbootbroombslibcachemcarcarDataclicolorspacecorrplotcowplotcpp11crayonDerivdigestdoBydplyrevaluateexpintfarverfastmapfitdistrplusfontawesomeforecastFormulafracdifffsgenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtablehighrhtmltoolsisobandjquerylibjsonlitekableExtraknitrlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmc2dmemoisemgcvmicrobenchmarkmimeminqamodelrmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpolynompurrrquantregR6rappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangrmarkdownrstatixrstudioapiS7sassscalesSparseMstringistringrsurvivalsvglitesystemfontstextshapingtibbletidyrtidyselecttimeDatetinytextriangleurcautf8vctrsviridisLitewithrxfunxml2yamlzipfRzoo

R Package 'stratifyR'

Rendered fromstratifyR-vignette.Rmdusingknitr::rmarkdownon Jun 23 2026.

Last update: 2026-06-23
Started: 2018-04-12

Readme and manuals

Help Manual

Help pageTopics
Micronutrient data on Anaemia in Fijianaemia
To create and store calculated values of the objective functioncreate.mat
Allocate data To calculate the stratum sample sizes (nh) for a fixed sample size (n) directly based on the datadata.alloc
To implement the Dynamic Programming (DP) solution procedure on the stratification problem presented in the form of a Mathematical Programming Problem (MPP)data.optim
Calculate the objective function value for a given (d, y)data.root
To calculate the stratum sample sizes (nh) for a fixed sample size (n) based on the hypothetical distribution of the datadistr.alloc
To implement the Dynamic Programming (DP) solution procedure on the stratification problem presented in the form of a Mathematical Programming Problem (MPP)distr.optim
Calculate the objective function value for a given (d, y) under a hypothesized distribution (scaled-data formulation)distr.root
To calculate the error for a normal variableerf
Determine best-fit distribution Identify the best-fit distribution for a univariate numeric vectorget.dist
Household Income Expenditure Survey (HIES) in Fijihies
Mathematics Marks for First-year University Studentsmath
To identify the minimum value out of two given sets of valuesminim.val
To calculate the modal value of the datamode.val
To re-allocate the stratum sample sizes (nh)realloc
Stratification of Univariate Survey Population Using the Datastrata.data
Stratification of Univariate Survey Population Using the Distributionstrata.distr
Sugarcane Farming Data in Fijisugarcane
Format and Present Resultssummary.strata