Package: SamplingStrata 1.6

SamplingStrata: Optimal Stratification of Sampling Frames for Multipurpose Sampling Surveys
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.
Authors:
SamplingStrata_1.6.tar.gz
SamplingStrata_1.6.zip(r-4.7)SamplingStrata_1.6.zip(r-4.6)SamplingStrata_1.6.zip(r-4.5)
SamplingStrata_1.6.tgz(r-4.6-x86_64)SamplingStrata_1.6.tgz(r-4.6-arm64)SamplingStrata_1.6.tgz(r-4.5-x86_64)SamplingStrata_1.6.tgz(r-4.5-arm64)
SamplingStrata_1.6.tar.gz(r-4.7-arm64)SamplingStrata_1.6.tar.gz(r-4.7-x86_64)SamplingStrata_1.6.tar.gz(r-4.6-arm64)SamplingStrata_1.6.tar.gz(r-4.6-x86_64)
SamplingStrata_1.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
SamplingStrata/json (API)
| # Install 'SamplingStrata' in R: |
| install.packages('SamplingStrata', repos = c('https://barcaroli.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/barcaroli/samplingstrata/issues
Pkgdown/docs site:https://barcaroli.github.io
- errors - Precision constraints (maximum CVs) as input for Bethel allocation
- nations - Dataset 'nations'
- strata - Dataframe containing information on strata in the frame
- swisserrors - Precision constraints (maximum CVs) as input for Bethel allocation
- swissframe - Dataframe containing information on all units in the population of reference that can be considered as the final sampling unit
- swissmunicipalities - The Swiss municipalities population
- swissstrata - Dataframe containing information on strata in the swiss municipalities frame
Last updated from:800340cb7d. Checks:11 WARNING, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | WARNING | 164 | ||
| linux-devel-x86_64 | WARNING | 164 | ||
| source / vignettes | OK | 242 | ||
| linux-release-arm64 | WARNING | 194 | ||
| linux-release-x86_64 | WARNING | 195 | ||
| macos-release-arm64 | WARNING | 104 | ||
| macos-release-x86_64 | WARNING | 215 | ||
| macos-oldrel-arm64 | WARNING | 123 | ||
| macos-oldrel-x86_64 | WARNING | 244 | ||
| windows-devel | WARNING | 146 | ||
| windows-release | WARNING | 172 | ||
| windows-oldrel | WARNING | 122 | ||
| wasm-release | OK | 141 |
Exports:adjustSizeaggrStrata2aggrStrataSpatialassignStrataLabelbethelbuildErrorsDFbuildFrameDFbuildFrameSpatialbuildStrataDFbuildStrataDFSpatialcheckInputcomputeGammaevalSolutionexpected_CVKmeansSolutionKmeansSolution2KmeansSolutionSpatialoptimizeStrataoptimizeStrata2optimizeStrataSpatialoptimStrataplotSamprateplotStrata2dprocBethelselectSampleselectSampleSpatialselectSampleSystematicsummaryStratatuneParametersupdateFrameupdateStratavar.bin
Dependencies:cachemcodetoolsdoParallelfastmapforeachglueiteratorsmemoisepbapplyRcpprlangSamplingBigData
Last update: 2025-10-05
Started: 2025-03-02
Last update: 2025-10-05
Started: 2020-08-11
Last update: 2025-10-05
Started: 2020-01-14
Last update: 2025-10-05
Started: 2020-01-14
Last update: 2025-03-02
Started: 2018-07-03
