SamplingStrata1.5-5 package

Optimal Stratification of Sampling Frames for Multipurpose Sampling Surveys

adjustSize

Adjustment of the sample size in case it is externally given

aggStrata2

Builds the "strata" dataframe containing information on target variabl...

aggStrataSpatial

Builds the "strata" dataframe containing information on target variabl...

assignStrataLabel

Function to assign the optimized strata labels

bethel

Multivariate optimal allocation

buildFrameDF

Builds the "sampling frame" dataframe from a dataset containing inform...

buildFrameSpatial

Builds the "sampling frame" dataframe from a dataset containing inform...

buildStrataDF

Builds the "strata" dataframe containing information on target variabl...

buildStrataDFSpatial

Builds the "strata" dataframe containing information on target variabl...

checkInput

Checks the inputs to the package: dataframes "errors", "strata" and "s...

computeGamma

Function that allows to calculate a heteroscedasticity index, together...

evalSolution

Evaluation of the solution produced by the function 'optimizeStrata' b...

expected_CV

Expected coefficients of variation of target variables Y

KmeansSolution

Initial solution obtained by applying kmeans clustering of atomic stra...

KmeansSolution2

Initial solution obtained by applying kmeans clustering of frame units

KmeansSolutionSpatial

Initial solution obtained by applying kmeans clustering of frame units

optimizeStrata

Best stratification of a sampling frame for multipurpose surveys

optimizeStrata2

Best stratification of a sampling frame for multipurpose surveys (only...

optimizeStrataSpatial

Best stratification of a sampling frame for multipurpose surveys consi...

optimStrata

Optimization of the stratification of a sampling frame given a sample ...

plotSamprate

Plotting sampling rates in the different strata for each domain in the...

plotStrata2d

Plot bivariate distibutions in strata

prepareSuggestion

Prepare suggestions for optimization with method = "continuous" or "sp...

procBethel

Procedure to apply Bethel algorithm and select a sample from given str...

selectSample

Selection of a stratified sample from the frame with srswor method

selectSampleSpatial

Selection of geo-referenced points from the frame

selectSampleSystematic

Selection of a stratified sample from the frame with systematic method

summaryStrata

Information on strata structure

tuneParameters

Execution and compared evaluation of optimization runs

updateFrame

Updates the initial frame on the basis of the optimized stratification

updateStrata

Assigns new labels to atomic strata on the basis of the optimized aggr...

var.bin

Allows to transform a continuous variable into a categorical ordinal o...

Tools for the optimization of stratified sampling design. It determines a stratification of a sampling frame that minimizes sample cost while satisfying precision constraints in a multivariate and multidomain context. The approach relies on a genetic algorithm; each candidate partition of the frame is an individual whose fitness is evaluated via the Bethel-Chromy allocation to meet target precisions. Functions support analysis of optimization results, labeling of the frame with new strata, and drawing a sample according to the optimal allocation. Algorithmic components adapt code from the 'genalg' package. See M. Ballin and G. Barcaroli (2020) "R package SamplingStrata: new developments and extension to Spatial Sampling" <doi:10.48550/arXiv.2004.09366>.

  • Maintainer: Giulio Barcaroli
  • License: GPL (>= 2)
  • Last published: 2025-10-08