R2BEAT
1.0.5Multistage Sampling Allocation and Sample Selection
Overview
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.
Major changes
- Added the function ‘select_PSU2’ to be used in alternative a ‘select_PSU’ when there is a quasi uniform distribution of the measure of size of the PSUs (this is the case of Enumeration Areas, in contrast to Municipalities): this function ensures a complete alignment of the number of selected PSUs and of the SSUs to be selected to corrispondent numbers of allocated PSUs and SSUs
- Added the function ‘build_dummy_variables’ to add dummy variables to the sampling frame (this is necessary if we want to differentiate precision constraints in the same domain level, for instance in the different regions)
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Andrea Fasulo <fasulo@istat.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = c("Andrea", "Fasulo,Giulio", "Barcaroli,Stefano", "Falorsi,Alessio", "Guandalini,Daniela", "Pagliuca,Marco", "Dionisio"),
family = "Terribili",
role = "aut"),
person(given = "Andrea",
family = "Fasulo",
role = "cre",
email = "fasulo@istat.it"))
as necessary.- NOTE11 OK, 2 NOTENow
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 25
- Examples that run
- 8%2 run in a plain check · 22 never run
- Exported functions with examples
- 94%
- Documented parameters
- 100%
- Return-value docs
- 82%
- Help pages citing references
- 16%
Downloads
Repository
Stars over time
Forks over time
PRs over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/barcaroli/r2beat on 2026-10-11.
GitHub Pages site last deployed 2026-06-09 · The repository has a site deploy workflow
pkgdown site last built 2026-06-09
Dependencies
Installing R2BEAT adds 6 packages (3 with compiled code, 1.6 MB of source tarballs). Heaviest: sampling 561 KB, lpSolve 457 KB, iterators 293 KB.
Code & Tests
Datasets
People & History
Maintainer since 1.0.0 (2019)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.5Latest2023-05-25 · current release · diff ↗ ·
added 3 exports
select_PSU2, build_dummy_variables, sens_names - RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.0.42021-12-02 · diff ↗ ·
removed 1 export
pattern:^[[:alpha:]]+added 14 exports
beat.1st, beat.2st, beat.cv, check_input, eval_2stage, plot_sens, prepareInputToAllocation1, prepareInputToAllocation2, select_PSU, select_SSU, sensitivity_min_SSU, sensitivity_min_SSU2, input_to_beat.2st_1, input_to_beat.2st_2 - 1.0.32021-06-24 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.0.2-12021-04-20 · diff ↗
- 1.0.22021-01-11 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.0.12020-01-13 · diff ↗
- 1.0.02019-07-18
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-07-18
- Total releases
- 7 / 7 yrs
- License
- EUPL
- Minimum R
- ≥ 3.5.0
- Bundled data
- 8.6 KB / 1 file
- Download size
- 1.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("R2BEAT")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.