Package: R2BEAT 1.0.6

Andrea Fasulo

R2BEAT: Multistage Sampling Allocation and Sample Selection

Multivariate optimal allocation for different domains in one and two stages stratified sample design. 'R2BEAT' extends the Neyman (1934) – Tschuprow (1923) allocation method to the case of several variables, adopting a generalization of the Bethel’s proposal (1989). 'R2BEAT' develops this methodology but, moreover, it allows to determine the sample allocation in the multivariate and multi-domains case of estimates for two-stage stratified samples. It also allows to perform both Primary Stage Units and Secondary Stage Units selection. This package requires the availability of 'ReGenesees', that can be installed from <https://github.com/DiegoZardetto/ReGenesees>.

Authors:Andrea Fasulo,Giulio Barcaroli,Ilaria Bombelli,Stefano Falorsi,Alessio Guandalini,Marco Dionisio Terribili

R2BEAT_1.0.6.tar.gz
R2BEAT_1.0.6.zip(r-4.5)R2BEAT_1.0.6.zip(r-4.4)R2BEAT_1.0.6.zip(r-4.3)
R2BEAT_1.0.6.tgz(r-4.4-any)R2BEAT_1.0.6.tgz(r-4.3-any)
R2BEAT_1.0.6.tar.gz(r-4.5-noble)R2BEAT_1.0.6.tar.gz(r-4.4-noble)
R2BEAT_1.0.6.tgz(r-4.4-emscripten)R2BEAT_1.0.6.tgz(r-4.3-emscripten)
R2BEAT.pdf |R2BEAT.html
R2BEAT/json (API)
NEWS

# Install 'R2BEAT' in R:
install.packages('R2BEAT', repos = c('https://barcaroli.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/barcaroli/r2beat/issues

Datasets:
  • PSU_strat - Information on Primary Stage Units (PSUs) stratification
  • allocation - Sample sizes for each stratum
  • deft_start - Starting values for the Design Effect
  • design - Sampling design variables
  • effst - Estimator effect
  • errors - Precision constraints (maximum CVs) as input for Bethel allocation
  • rho - Intraclass correlation coefficients for self and non self representative in the strata
  • strata - Strata characteristics

On CRAN:

23 exports 1 stars 1.59 score 8 dependencies 35 scripts 275 downloads

Last updated 3 months agofrom:98c14b3909. Checks:ERROR: 7. Indexed: yes.

TargetResultDate
Doc / VignettesFAILAug 26 2024
R-4.5-winERRORAug 26 2024
R-4.5-linuxERRORAug 26 2024
R-4.4-winERRORAug 26 2024
R-4.4-macERRORAug 26 2024
R-4.3-winERRORAug 26 2024
R-4.3-macERRORAug 26 2024

Exports:adjust_CVsaggrStratabeat.1cvbeat.1stbeat.2stbeat.cvbuild_dummy_variablescheck_inputCVs_hinteval_2stageexpected_CVinput_to_beat.2st_1input_to_beat.2st_2plot_sensprepareInputToAllocation_beat.1stprepareInputToAllocation1prepareInputToAllocation2select_PSUselect_PSU2select_SSUsens_namessensitivity_min_SSUsensitivity_min_SSU2

Dependencies:codetoolsdoParallelforeachglueiteratorslpSolveMASSsampling

Readme and manuals

Help Manual

Help pageTopics
adjustCVsadjust_CVs
aggrStrataaggrStrata
Sample sizes for each stratumallocation
The function returns a dataframe with planned and actual coefficients of variation (CV) in a multivariate multi-domain allocation problem.beat.1cv
Compute one stage multivariate optimal allocation.beat.1st
Multivariate optimal allocation for different domains in two stage statified sample designbeat.2st
Computation of coefficient of variation (CV) for a given multivariate multiple allocationbeat.cv
build_dummy_variablesbuild_dummy_variables
Check of coherence in the inputs for the allocation stepcheck_input
cvs_hintCVs_hint
Starting values for the Design Effect (deft)deft_start
Sampling design variablesdesign
Estimator effecteffst
Precision constraints (maximum CVs) as input for Bethel allocationerrors
Evaluation of the two-stage sample design optimized solution by simulationeval_2stage
expected_CVexpected_CV
Input dataframes for R2BEAT two-stages sample design (when a previous round of the survey is available, but no sampling frame)input_to_beat.2st_1
Prepares the design and psu file for two-stage sample design (when a previous round of the survey is available, but no sampling frame)input_to_beat.2st_2
Plot of the sensitivity analysis for some parameters by means of grid searchplot_sens
The function returns a dataframe, starting from the sampling frame (either universe or sample of a previous survey) with strata information.prepareInputToAllocation_beat.1st
Input dataframes for R2BEAT two-stages sample design when sampling frame is availableprepareInputToAllocation1
Input dataframes for R2BEAT two-stages sample design when both sampling frame and a previous round of the survey are availableprepareInputToAllocation2
Information on Primary Stage Units (PSUs) stratificationPSU_strat
Intraclass correlation coefficients for self and non self representative in the stratarho
Select sample of primary stage units (PSU)select_PSU
Select sample of primary stage units (PSU)select_PSU2
Select sample of secondary stage units (SSU)select_SSU
Function for better presentation of sensitivity informationsens_names
Sensitivity analysis for choosing minimum number of SSUs per PSU (sampling frame available)sensitivity_min_SSU
Sensitivity analysis for choosing minimum number of SSUs per PSU (no sampling frame available)sensitivity_min_SSU2
Strata characteristicsstrata