Learn R Programming

stratifyR (version 1.0-4)

Optimal Stratification of Univariate Populations

Description

The stratification of univariate populations under stratified sampling designs is implemented according to Khan et al. (2002) and Khan et al. (2015) 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.

Copy Link

Version

Install

install.packages('stratifyR')

Monthly Downloads

281

Version

1.0-4

License

GPL-3

Maintainer

Karuna G. Reddy

Last Published

February 23rd, 2025

Functions in stratifyR (1.0-4)

mode.val

To calculate the modal value of the data
realloc

To re-allocate the stratum sample sizes (nh)
strata.distr

Stratification of Univariate Survey Population Using the Distribution
math

Mathematics Marks for First-year University Students
summary.strata

This method formats and outputs the final results to the R console
hies

Household Income Expenditure Survey (HIES) in Fiji
get.dist

To identify the best-fit distribution of a univariate data
anaemia

Micronutrient data on Anaemia in Fiji
distr.optim

To implement the Dynamic Programming (DP) solution procedure on the stratification problem presented in the form of a Mathematical Programming Problem (MPP)
erf

To calculate the error for a normal variable
data.alloc

To calculate the stratum sample sizes (nh) for a fixed sample size (n) directly based on the data
data.optim

To implement the Dynamic Programming (DP) solution procedure on the stratification problem presented in the form of a Mathematical Programming Problem (MPP)
data.root

To calculate the objective function values
create.mat

To create and store calculated values of the objective function
distr.alloc

To calculate the stratum sample sizes (nh) for a fixed sample size (n) based on the hypothetical distribution of the data
distr.root

Calculate the objective function values
minim.val

To identify the minimum value out of two given sets of values
sugarcane

Sugarcane Farming Data in Fiji
strata.data

Stratification of Univariate Survey Population Using the Data