{
  "_id": "6a288fb9732311cd8758b35c",
  "Package": "R2BEAT",
  "Type": "Package",
  "Title": "Multistage Sampling Allocation and Sample Selection",
  "Description": "Multivariate optimal allocation for different domains in\none and two stages stratified sample design. 'R2BEAT' extends\nthe Neyman (1934) – Tschuprow (1923) allocation method to the\ncase of several variables, adopting a generalization of the\nBethel’s proposal (1989). 'R2BEAT' develops this methodology\nbut, moreover, it allows to determine the sample allocation in\nthe multivariate and multi-domains case of estimates for\ntwo-stage stratified samples. It also allows to perform both\nPrimary Stage Units and Secondary Stage Units selection. This\npackage requires the availability of 'ReGenesees', that can be\ninstalled from <https://github.com/DiegoZardetto/ReGenesees>.",
  "Version": "1.0.6",
  "Remotes": [
    "DiegoZardetto/ReGenesees"
  ],
  "Author": "Andrea Fasulo,Giulio Barcaroli,Ilaria Bombelli,Stefano\nFalorsi,Alessio Guandalini,Marco Dionisio Terribili",
  "Authors@R": "c(person(\"Andrea\", \"Fasulo\", role = c(\"aut\", \"cre\"),\nemail = \"fasulo@istat.it\"),\nperson(\"Giulio\", \"Barcaroli\", role = \"aut\",\nemail = \"gbarcaroli@gmail.com\"),\nperson(\"Stefano\", \"Falorsi\", role = \"aut\",\nemail = \"stfalors@istat.it\"),\nperson(\"Alessio\", \"Guandalini\", role = \"aut\",\nemail = \"alessio.guandalini@istat.it\"),\nperson(\"Ilaria\", \"Bombelli\", role = \"aut\",\nemail=\"ilaria.bombelli@istat.it\"),\nperson(\"Marco Dionisio\",\"Terribili\", role = \"aut\",\nemail=\"marco.terribili@istat.it\")\n)",
  "Maintainer": "Andrea Fasulo <fasulo@istat.it>",
  "License": "EUPL",
  "Encoding": "UTF-8",
  "URL": "https://barcaroli.github.io/R2BEAT/",
  "VignetteBuilder": "knitr",
  "BugReports": "https://github.com/barcaroli/R2BEAT/issues",
  "RoxygenNote": "7.3.3",
  "Repository": "https://barcaroli.r-universe.dev",
  "Date/Publication": "2026-06-09 20:55:24 UTC",
  "RemoteUrl": "https://github.com/barcaroli/r2beat",
  "RemoteRef": "HEAD",
  "RemoteSha": "38418fc33fd9801d7995dccc70bff52364e8a862",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-09 22:06:35 UTC",
    "User": "root"
  },
  "MD5sum": "b1171c734bbdac7b14b8a451192c8584",
  "_user": "barcaroli",
  "_type": "src",
  "_file": "R2BEAT_1.0.6.tar.gz",
  "_fileid": "7f72f5bd32a9a9e7f403e2be8fe5ef5e7e32a75e75ff2215c9ff688b124b58eb",
  "_filesize": 62529930,
  "_sha256": "7f72f5bd32a9a9e7f403e2be8fe5ef5e7e32a75e75ff2215c9ff688b124b58eb",
  "_created": "2026-06-09T22:06:35.000Z",
  "_published": "2026-06-09T22:12:09.235Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80437996428,
      "time": 202,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7521418970"
    },
    {
      "job": 80437996415,
      "time": 244,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7521431078"
    },
    {
      "job": 80437996436,
      "time": 184,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7521414922"
    },
    {
      "job": 80437996459,
      "time": 182,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7521418087"
    },
    {
      "job": 80436993277,
      "time": 379,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7521356822"
    },
    {
      "job": 80437996401,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7521392907"
    },
    {
      "job": 80437996422,
      "time": 173,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7521410346"
    },
    {
      "job": 80437996440,
      "time": 162,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7521406869"
    },
    {
      "job": 80437996424,
      "time": 187,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7521414438"
    }
  ],
  "_buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/barcaroli/r2beat",
  "_commit": {
    "id": "38418fc33fd9801d7995dccc70bff52364e8a862",
    "author": "Giulio Barcaroli <gbarcaroli@gmail.com>",
    "committer": "Giulio Barcaroli <gbarcaroli@gmail.com>",
    "message": "staging all files\n",
    "time": 1781038524
  },
  "_maintainer": {
    "name": "Andrea Fasulo",
    "email": "fasulo@istat.it",
    "login": "andrea-fasulo",
    "description": "Statistician at the Italian National Statistical Institute",
    "uuid": 67147757
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "sampling",
      "role": "Depends"
    },
    {
      "package": "glue",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Depends"
    },
    {
      "package": "parallel",
      "role": "Depends"
    },
    {
      "package": "foreach",
      "role": "Depends"
    },
    {
      "package": "doParallel",
      "role": "Depends"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "bookdown",
      "role": "Suggests"
    },
    {
      "package": "ReGenesees",
      "role": "Suggests"
    }
  ],
  "_owner": "barcaroli",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-28",
      "n": 3
    },
    {
      "week": "2025-37",
      "n": 2
    },
    {
      "week": "2025-41",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 4
    },
    {
      "week": "2026-05",
      "n": 10
    },
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 6
    },
    {
      "week": "2026-24",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "barcaroli",
      "count": 500,
      "uuid": 5859179
    }
  ],
  "_userbio": {
    "uuid": 5859179,
    "type": "user",
    "name": "Giulio Barcaroli"
  },
  "_downloads": {
    "count": 275,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/R2BEAT"
  },
  "_devurl": "https://github.com/barcaroli/r2beat",
  "_pkgdown": "https://barcaroli.github.io/R2BEAT/",
  "_searchresults": 36,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/R2BEAT.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/barcaroli/r2beat",
  "_realowner": "barcaroli",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2019-07-18"
    },
    {
      "version": "1.0.1",
      "date": "2020-01-13"
    },
    {
      "version": "1.0.2",
      "date": "2021-01-11"
    },
    {
      "version": "1.0.2-1",
      "date": "2021-04-20"
    },
    {
      "version": "1.0.3",
      "date": "2021-06-24"
    },
    {
      "version": "1.0.4",
      "date": "2021-12-02"
    },
    {
      "version": "1.0.5",
      "date": "2023-05-25"
    }
  ],
  "_exports": [
    "adjust_CVs",
    "aggrStrata",
    "beat.1cv",
    "beat.1cv_2",
    "beat.1st",
    "beat.2st",
    "beat.cv",
    "build_dummy_variables",
    "check_input",
    "CVs_hint",
    "eval_2stage",
    "expected_CV",
    "input_to_beat.2st_1",
    "input_to_beat.2st_2",
    "pareto",
    "plot_sens",
    "prepareInputToAllocation_beat.1st",
    "prepareInputToAllocation1",
    "prepareInputToAllocation2",
    "select_PSU",
    "select_PSU2",
    "select_SSU",
    "sens_names",
    "sensitivity_min_SSU",
    "sensitivity_min_SSU2"
  ],
  "_datasets": [
    {
      "name": ".Random.seed",
      "title": "",
      "object": "R2BEAT_ReGenesees",
      "file": "R2BEAT_ReGenesees.RData",
      "class": [
        "integer"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "allocation",
      "title": "Sample sizes for each stratum",
      "object": "beat.example",
      "file": "beat.example.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "SIZE"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    },
    {
      "name": "cal",
      "title": "",
      "object": "R2BEAT_ReGenesees",
      "file": "R2BEAT_ReGenesees.RData",
      "class": [
        "cal.analytic",
        "analytic",
        "survey.design2",
        "survey.design"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "deft_start",
      "title": "Starting values for the Design Effect (deft)",
      "object": "beat.example",
      "file": "beat.example.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "STRATUM",
        "DEFT1",
        "DEFT2"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    },
    {
      "name": "des",
      "title": "",
      "object": "R2BEAT_ReGenesees",
      "file": "R2BEAT_ReGenesees.RData",
      "class": [
        "analytic",
        "survey.design2",
        "survey.design"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "design",
      "title": "Sampling design variables",
      "object": "beat.example",
      "file": "beat.example.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "STRATUM",
        "STRAT_MOS",
        "DELTA",
        "MINIMUM"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    },
    {
      "name": "effst",
      "title": "Estimator effect",
      "object": "beat.example",
      "file": "beat.example.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "STRATUM",
        "EFFST1",
        "EFFST2"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    },
    {
      "name": "errors",
      "title": "Precision constraints (maximum CVs) as input for Bethel allocation",
      "object": "beat.example",
      "file": "beat.example.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "DOM",
        "CV1",
        "CV2"
      ],
      "rows": 2,
      "table": true,
      "tojson": true
    },
    {
      "name": "pop",
      "title": "",
      "object": "pop",
      "file": "pop.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "region",
        "province",
        "municipality",
        "id_hh",
        "id_ind",
        "stratum",
        "stratum_label",
        "sex",
        "cl_age",
        "active",
        "income_hh",
        "unemployed",
        "inactive"
      ],
      "rows": 2258507,
      "table": true,
      "tojson": true
    },
    {
      "name": "psu",
      "title": "",
      "object": "R2BEAT_ReGenesees",
      "file": "R2BEAT_ReGenesees.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "municipality",
        "stratum",
        "ind",
        "hh"
      ],
      "rows": 513,
      "table": true,
      "tojson": true
    },
    {
      "name": "PSU_strat",
      "title": "Information on Primary Stage Units (PSUs) stratification",
      "object": "beat.example",
      "file": "beat.example.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "STRATUM",
        "PSU_MOS",
        "PSU_ID"
      ],
      "rows": 2321,
      "table": true,
      "tojson": true
    },
    {
      "name": "rho",
      "title": "Intraclass correlation coefficients for self and non self representative in the strata",
      "object": "beat.example",
      "file": "beat.example.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "STRATUM",
        "RHO_AR1",
        "RHO_NAR1",
        "RHO_AR2",
        "RHO_NAR2"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    },
    {
      "name": "samp",
      "title": "",
      "object": "sample",
      "file": "sample.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "municipality",
        "id_ind",
        "region",
        "province",
        "id_hh",
        "stratum",
        "stratum_label",
        "sex",
        "cl_age",
        "active",
        "income_hh",
        "unemployed",
        "inactive",
        "Prob_1st",
        "Prob_2st",
        "Prob_tot",
        "weight",
        "SR",
        "nSR",
        "stratum_2"
      ],
      "rows": 9421,
      "table": true,
      "tojson": true
    },
    {
      "name": "strata",
      "title": "Strata characteristics",
      "object": "beat.example",
      "file": "beat.example.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "STRATUM",
        "N",
        "DOM1",
        "DOM2",
        "M1",
        "M2",
        "COST",
        "CENS",
        "S1",
        "S2"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "adjust_CVs",
      "title": "adjustCVs",
      "topics": [
        "adjust_CVs"
      ]
    },
    {
      "page": "aggrStrata",
      "title": "aggrStrata",
      "topics": [
        "aggrStrata"
      ]
    },
    {
      "page": "allocation",
      "title": "Sample sizes for each stratum",
      "topics": [
        "allocation"
      ]
    },
    {
      "page": "beat.1cv",
      "title": "The function returns a dataframe with planned and actual coefficients of variation (CV) in a multivariate multi-domain allocation problem.",
      "topics": [
        "beat.1cv"
      ]
    },
    {
      "page": "beat.1cv_2",
      "title": "The function returns a dataframe with planned and actual coefficients of variation (CV) in a multivariate multi-domain allocation problem.",
      "topics": [
        "beat.1cv_2"
      ]
    },
    {
      "page": "beth1",
      "title": "Compute one stage multivariate optimal allocation.",
      "topics": [
        "beat.1st"
      ]
    },
    {
      "page": "beth2",
      "title": "Multivariate optimal allocation for different domains in two stage statified sample design",
      "topics": [
        "beat.2st"
      ]
    },
    {
      "page": "beatcv",
      "title": "Computation of coefficient of variation (CV) for a given multivariate multiple allocation",
      "topics": [
        "beat.cv"
      ]
    },
    {
      "page": "build_dummy_variables",
      "title": "build_dummy_variables",
      "topics": [
        "build_dummy_variables"
      ]
    },
    {
      "page": "check_input",
      "title": "Check of coherence in the inputs for the allocation step",
      "topics": [
        "check_input"
      ]
    },
    {
      "page": "CVs_hint",
      "title": "cvs_hint",
      "topics": [
        "CVs_hint"
      ]
    },
    {
      "page": "deft_start",
      "title": "Starting values for the Design Effect (deft)",
      "topics": [
        "deft_start"
      ]
    },
    {
      "page": "design",
      "title": "Sampling design variables",
      "topics": [
        "design"
      ]
    },
    {
      "page": "effst",
      "title": "Estimator effect",
      "topics": [
        "effst"
      ]
    },
    {
      "page": "errors",
      "title": "Precision constraints (maximum CVs) as input for Bethel allocation",
      "topics": [
        "errors"
      ]
    },
    {
      "page": "eval_2stage",
      "title": "Evaluation of the two-stage sample design optimized solution by simulation",
      "topics": [
        "eval_2stage"
      ]
    },
    {
      "page": "expected_CV",
      "title": "expected_CV",
      "topics": [
        "expected_CV"
      ]
    },
    {
      "page": "input_to_beat.2st_1",
      "title": "Input dataframes for R2BEAT two-stages sample design (when a previous round of the survey is available, but no sampling frame)",
      "topics": [
        "input_to_beat.2st_1"
      ]
    },
    {
      "page": "input_to_beat.2st_2",
      "title": "Prepares the design and psu file for two-stage sample design (when a previous round of the survey is available, but no sampling frame)",
      "topics": [
        "input_to_beat.2st_2"
      ]
    },
    {
      "page": "pareto",
      "title": "Pareto function",
      "topics": [
        "pareto"
      ]
    },
    {
      "page": "plot_sens",
      "title": "Plot of the sensitivity analysis for some parameters by means of grid search",
      "topics": [
        "plot_sens"
      ]
    },
    {
      "page": "prepareInputToAllocation_beat.1st",
      "title": "The function returns a dataframe, starting from the sampling frame (either universe or sample of a previous survey) with strata information.",
      "topics": [
        "prepareInputToAllocation_beat.1st"
      ]
    },
    {
      "page": "prepareInputToAllocation1",
      "title": "Input dataframes for R2BEAT two-stages sample design when sampling frame is available",
      "topics": [
        "prepareInputToAllocation1"
      ]
    },
    {
      "page": "prepareInputToAllocation2",
      "title": "Input dataframes for R2BEAT two-stages sample design when both sampling frame and a previous round of the survey are available",
      "topics": [
        "prepareInputToAllocation2"
      ]
    },
    {
      "page": "PSU_strat",
      "title": "Information on Primary Stage Units (PSUs) stratification",
      "topics": [
        "PSU_strat"
      ]
    },
    {
      "page": "rho",
      "title": "Intraclass correlation coefficients for self and non self representative in the strata",
      "topics": [
        "rho"
      ]
    },
    {
      "page": "select_PSU",
      "title": "Select sample of primary stage units (PSU)",
      "topics": [
        "select_PSU"
      ]
    },
    {
      "page": "select_PSU2",
      "title": "Select sample of primary stage units (PSU)",
      "topics": [
        "select_PSU2"
      ]
    },
    {
      "page": "select_SSU",
      "title": "Select sample of secondary stage units (SSU)",
      "topics": [
        "select_SSU"
      ]
    },
    {
      "page": "sens_names",
      "title": "Function for better presentation of sensitivity information",
      "topics": [
        "sens_names"
      ]
    },
    {
      "page": "sensitivity_min_SSU",
      "title": "Sensitivity analysis for choosing minimum number of SSUs per PSU (sampling frame available)",
      "topics": [
        "sensitivity_min_SSU"
      ]
    },
    {
      "page": "sensitivity_min_SSU2",
      "title": "Sensitivity analysis for choosing minimum number of SSUs per PSU (no sampling frame available)",
      "topics": [
        "sensitivity_min_SSU2"
      ]
    },
    {
      "page": "strata",
      "title": "Strata characteristics",
      "topics": [
        "strata"
      ]
    }
  ],
  "_readme": "https://github.com/barcaroli/r2beat/raw/HEAD/README.md",
  "_rundeps": [
    "codetools",
    "doParallel",
    "foreach",
    "glue",
    "iterators",
    "lpSolve",
    "MASS",
    "sampling"
  ],
  "_score": 4.459392487759231,
  "_indexed": true,
  "_nocasepkg": "r2beat",
  "_universes": [
    "barcaroli",
    "andrea-fasulo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.6",
      "date": "2026-06-09T22:09:23.000Z",
      "distro": "noble",
      "commit": "38418fc33fd9801d7995dccc70bff52364e8a862",
      "fileid": "a271b62b27e904546639fbdecb564d7c85c4a362afcb31753e4c2036cc08fdfa",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.6",
      "date": "2026-06-09T22:10:06.000Z",
      "distro": "noble",
      "commit": "38418fc33fd9801d7995dccc70bff52364e8a862",
      "fileid": "94225b6257bf5d035dbc71600913836f7b2e53fa7a04dbc596d582c50fcc8295",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.6",
      "date": "2026-06-09T22:09:08.000Z",
      "commit": "38418fc33fd9801d7995dccc70bff52364e8a862",
      "fileid": "60c8cb38f077b0ac6ed69d51777e7dea04e0cd2f78cd8f9c2cfa94fb4a216c03",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.6",
      "date": "2026-06-09T22:09:19.000Z",
      "commit": "38418fc33fd9801d7995dccc70bff52364e8a862",
      "fileid": "a1a3b03482faa294ea53bdfd88f85bd9763c9a06b31675ea3d5883ea15cb1253",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.6",
      "date": "2026-06-09T22:09:27.000Z",
      "commit": "38418fc33fd9801d7995dccc70bff52364e8a862",
      "fileid": "f06d685af9c8468f615909466df6a625dda5275de1f06070db559b3404f47521",
      "status": "success",
      "buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.6",
      "date": "2026-06-09T22:08:37.000Z",
      "commit": "38418fc33fd9801d7995dccc70bff52364e8a862",
      "fileid": "410e4a4a038e31bfcd6f0185769500804e5fb7379ad3561435cfdf7d8c1d6fe1",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.6",
      "date": "2026-06-09T22:08:43.000Z",
      "commit": "38418fc33fd9801d7995dccc70bff52364e8a862",
      "fileid": "aec4e67e9f6b425e7769034a2f1cf7d4a2cfa855dadc5f196785c83da6e7b258",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.6",
      "date": "2026-06-09T22:09:16.000Z",
      "commit": "38418fc33fd9801d7995dccc70bff52364e8a862",
      "fileid": "a340a1585ed9bd53b5a636fb80a57706c9a551dd124496b78b94edac7899707c",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/barcaroli/actions/runs/27238676725"
    }
  ]
}