SamplingStrata1.5-4 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...

In the field of stratified sampling design, this package offers an approach for the determination of the best stratification of a sampling frame, the one that ensures the minimum sample cost under the condition to satisfy precision constraints in a multivariate and multidomain case. This approach is based on the use of the genetic algorithm: each solution (i.e. a particular partition in strata of the sampling frame) is considered as an individual in a population; the fitness of all individuals is evaluated applying the Bethel-Chromy algorithm to calculate the sampling size satisfying precision constraints on the target estimates. Functions in the package allows to: (a) analyse the obtained results of the optimisation step; (b) assign the new strata labels to the sampling frame; (c) select a sample from the new frame accordingly to the best allocation. Functions for the execution of the genetic algorithm are a modified version of the functions in the 'genalg' package. M.Ballin, G.Barcaroli (2020) <arXiv:2004.09366> "R package SamplingStrata: new developments and extension to Spatial Sampling".

  • Maintainer: Giulio Barcaroli
  • License: GPL (>= 2)
  • Last published: 2022-11-15