Package: SamplingStrata 1.5-4
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.5-4.tar.gz
SamplingStrata_1.5-4.zip(r-4.5)SamplingStrata_1.5-4.zip(r-4.4)SamplingStrata_1.5-4.zip(r-4.3)
SamplingStrata_1.5-4.tgz(r-4.4-any)SamplingStrata_1.5-4.tgz(r-4.3-any)
SamplingStrata_1.5-4.tar.gz(r-4.5-noble)SamplingStrata_1.5-4.tar.gz(r-4.4-noble)
SamplingStrata_1.5-4.tgz(r-4.4-emscripten)SamplingStrata_1.5-4.tgz(r-4.3-emscripten)
SamplingStrata.pdf |SamplingStrata.html✨
SamplingStrata/json (API)
NEWS
# 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
- 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 6 months agofrom:b0b93ea02f. Checks:ERROR: 1 WARNING: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | FAIL | Oct 27 2024 |
R-4.5-win | WARNING | Oct 27 2024 |
R-4.5-linux | WARNING | Oct 27 2024 |
R-4.4-win | WARNING | Oct 27 2024 |
R-4.4-mac | WARNING | Oct 27 2024 |
R-4.3-win | WARNING | Oct 27 2024 |
R-4.3-mac | WARNING | Oct 27 2024 |
Exports:adjustSizeaggrStrata2aggrStrataSpatialassignStrataLabelbethelbuildFrameDFbuildFrameSpatialbuildStrataDFbuildStrataDFSpatialcheckInputcomputeGammaevalSolutionexpected_CVKmeansSolutionKmeansSolution2KmeansSolutionSpatialoptimizeStrataoptimizeStrata2optimizeStrataSpatialoptimStrataplotSamprateplotStrata2dprepareSuggestionprocBethelselectSampleselectSampleSpatialselectSampleSystematicsummaryStratatuneParametersupdateFrameupdateStratavar.bin
Dependencies:cachemcodetoolsdoParallelfastmapforeachglueiteratorsmemoisepbapplyrlangSamplingBigData