{
  "_id": "6a22b30b0ef520ea2f58d46e",
  "Package": "stratallo",
  "Title": "Optimum Sample Allocation in Stratified Sampling",
  "Version": "3.0.1",
  "Authors@R": "c(\nperson(\"Wojciech\", \"Wójciak\", , \"wojciech.wojciak@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Jacek\", \"Wesołowski\", , \"jacek.wesolowski@pw.edu.pl\", role = \"sad\"),\nperson(\"Robert\", \"Wieczorkowski\", , \"R.Wieczorkowski@stat.gov.pl\", role = \"ctb\"),\nperson(\"David\", \"Munoz Tord\", , \"david.munoztord@mailbox.org\", role = \"ctb\")\n)",
  "Description": "Provides exact analytical algorithms for computing optimum\nsample allocations in stratified sampling. Supports classical\nNeyman-Tschuprow allocation, minimum-cost allocation under a\nvariance constraint, and multi-domain allocation with\ncontrolled precision. Handles lower and upper bounds, cost\nconstraints, and multiple domains. Includes helper functions\nfor variance computation, allocation summaries, rounding, and\nexample datasets for testing and benchmarking.",
  "License": "GPL-2",
  "URL": "https://github.com/wwojciech/stratallo",
  "BugReports": "https://github.com/wwojciech/stratallo/issues",
  "VignetteBuilder": "knitr",
  "RdMacros": "Rdpack",
  "Config/testthat/edition": "3",
  "Copyright": "Wojciech Wójciak",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "Collate": "'helpers_dca_rdca.R' 'utils.R' 'alg_dca.R'\n'alg_other_authors.R' 'alg_rdca.R' 'alg_rna-sga-coma.R'\n'alg_rnabox.R' 'alloc_summary.R' 'check_rdca.R' 'data.R'\n'dopt.R' 'opt.R' 'rounding.R' 'stratallo-package.R' 'var.R'",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://wwojciech.r-universe.dev",
  "Date/Publication": "2026-06-05 09:13:31 UTC",
  "RemoteUrl": "https://github.com/wwojciech/stratallo",
  "RemoteRef": "HEAD",
  "RemoteSha": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-05 11:26:17 UTC",
    "User": "root"
  },
  "Author": "Wojciech Wójciak [aut, cre],\nJacek Wesołowski [sad],\nRobert Wieczorkowski [ctb],\nDavid Munoz Tord [ctb]",
  "Maintainer": "Wojciech Wójciak <wojciech.wojciak@gmail.com>",
  "MD5sum": "56fae4c9e31636e7d2661dfb84efe2bd",
  "_user": "wwojciech",
  "_type": "src",
  "_file": "stratallo_3.0.1.tar.gz",
  "_fileid": "476faf12c263d18ef430a0b9e96f2b0572cd1c840d6da1882b4590f2f0c57582",
  "_filesize": 4375985,
  "_sha256": "476faf12c263d18ef430a0b9e96f2b0572cd1c840d6da1882b4590f2f0c57582",
  "_created": "2026-06-05T11:26:17.000Z",
  "_published": "2026-06-05T11:29:15.054Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79718078520,
      "time": 132,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7435440024"
    },
    {
      "job": 79718078549,
      "time": 118,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7435436229"
    },
    {
      "job": 79718078573,
      "time": 111,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7435433758"
    },
    {
      "job": 79718078570,
      "time": 93,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7435428991"
    },
    {
      "job": 79717671997,
      "time": 171,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7435401197"
    },
    {
      "job": 79718078543,
      "time": 101,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7435431080"
    },
    {
      "job": 79718078539,
      "time": 110,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7435433889"
    },
    {
      "job": 79718078581,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7435430453"
    },
    {
      "job": 79718078523,
      "time": 136,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7435440771"
    }
  ],
  "_buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/wwojciech/stratallo",
  "_commit": {
    "id": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
    "author": "Wojtek <11532997+wwojciech@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1780650811
  },
  "_maintainer": {
    "name": "Wojciech Wójciak",
    "email": "wojciech.wojciak@gmail.com",
    "login": "wwojciech",
    "description": "\n",
    "uuid": 11532997
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "wwojciech",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-11",
      "n": 5
    },
    {
      "week": "2026-23",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "wwojciech",
      "count": 81,
      "uuid": 11532997
    },
    {
      "user": "rwieczor",
      "count": 7,
      "uuid": 10120944
    },
    {
      "user": "munoztd0",
      "count": 5,
      "uuid": 43644805
    }
  ],
  "_userbio": {
    "uuid": 11532997,
    "type": "user",
    "name": "Wojtek"
  },
  "_downloads": {
    "count": 194,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stratallo"
  },
  "_devurl": "https://github.com/wwojciech/stratallo",
  "_searchresults": 9,
  "_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/readme.html",
    "extra/readme.md",
    "extra/stratallo.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/wwojciech/stratallo",
  "_realowner": "wwojciech",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-05-25"
    },
    {
      "version": "2.0.0",
      "date": "2022-04-12"
    },
    {
      "version": "2.0.1",
      "date": "2022-04-13"
    },
    {
      "version": "2.1.0",
      "date": "2022-09-13"
    },
    {
      "version": "2.2.0",
      "date": "2023-06-25"
    },
    {
      "version": "2.2.1",
      "date": "2023-11-27"
    },
    {
      "version": "3.0.0",
      "date": "2026-03-12"
    },
    {
      "version": "3.0.1",
      "date": "2026-03-12"
    }
  ],
  "_exports": [
    "alloc_summary",
    "coma",
    "dca",
    "dca_nmax",
    "dca0",
    "dopt",
    "opt",
    "optcost",
    "rdca",
    "rna",
    "rnabox",
    "round_oric",
    "round_ran",
    "sga",
    "sgaplus",
    "var_st",
    "var_stsi"
  ],
  "_datasets": [
    {
      "name": "pop10s_bounds_ucost",
      "title": "Datasets with Example Populations",
      "object": "pop10s_bounds_ucost",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "N",
        "S",
        "m",
        "M",
        "unit_cost"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "pop2d4s",
      "title": "Datasets with Example Populations",
      "object": "pop2d4s",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "pop507s_ucost",
      "title": "Datasets with Example Populations",
      "object": "pop507s_ucost",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "N",
        "S",
        "unit_cost"
      ],
      "rows": 507,
      "table": true,
      "tojson": true
    },
    {
      "name": "pop969s_ucost",
      "title": "Datasets with Example Populations",
      "object": "pop969s_ucost",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "N",
        "S",
        "unit_cost"
      ],
      "rows": 969,
      "table": true,
      "tojson": true
    },
    {
      "name": "pop9d278s",
      "title": "Datasets with Example Populations",
      "object": "pop9d278s",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "alg_1sided",
      "title": "Algorithms for Optimum Sample Allocation Under One-Sided Bound Constraints",
      "topics": [
        "alg_1sided",
        "coma",
        "rna",
        "sga",
        "sgaplus"
      ]
    },
    {
      "page": "alloc_summary",
      "title": "Summarizing the Allocation",
      "topics": [
        "alloc_summary"
      ]
    },
    {
      "page": "check_rdca",
      "title": "Internal Diagnostic Functions for Checking Optimality of 'rdca()' Allocations",
      "topics": [
        "check_rdca",
        "rdca_cnstr_check",
        "rdca_obj_cnstr",
        "rdca_optcond_sU"
      ]
    },
    {
      "page": "data",
      "title": "Datasets with Example Populations",
      "topics": [
        "data",
        "pop10s_bounds_ucost",
        "pop2d4s",
        "pop507s_ucost",
        "pop969s_ucost",
        "pop9d278s"
      ]
    },
    {
      "page": "dca",
      "title": "Domain-Controlled Allocation (DCA) Algorithm",
      "topics": [
        "dca",
        "dca0",
        "dca_nmax"
      ]
    },
    {
      "page": "dca_M",
      "title": "DCA Algorithm for Upper-Bound Constrained Allocations (M <= N)",
      "topics": [
        "dca_M"
      ]
    },
    {
      "page": "dopt",
      "title": "Multi-Domain Optimum Sample Allocation with Controlled-Precision under Upper-Bound Constraints",
      "topics": [
        "dopt"
      ]
    },
    {
      "page": "fpia",
      "title": "Fixed-Point Iteration Algorithm",
      "topics": [
        "fpia",
        "fpia2",
        "glambda",
        "philambda"
      ]
    },
    {
      "page": "has_mixed_signs",
      "title": "Check for Mixed Signs in a Numeric Vector",
      "topics": [
        "has_mixed_signs"
      ]
    },
    {
      "page": "helpers_dca_rdca",
      "title": "Internal Helper Functions for 'dca0()', 'dca()', and 'rdca()'",
      "topics": [
        "helpers_dca_rdca",
        "H_cnt2dind",
        "H_cnt2glbidx",
        "H_get_strata_indices"
      ]
    },
    {
      "page": "is_equal",
      "title": "Check Numeric Equality within a Tolerance",
      "topics": [
        "is_equal"
      ]
    },
    {
      "page": "obj_emptiness",
      "title": "Object Emptiness ('NULL' or zero-length)",
      "topics": [
        "is_empty",
        "is_nonempty",
        "obj_emptiness"
      ]
    },
    {
      "page": "opt",
      "title": "Optimum Sample Allocation in Stratified Sampling",
      "topics": [
        "opt"
      ]
    },
    {
      "page": "optcost",
      "title": "Minimum-Cost Allocation in Stratified Sampling",
      "topics": [
        "optcost"
      ]
    },
    {
      "page": "rdca",
      "title": "Recursive Domain-Controlled Allocation (RDCA) Algorithm",
      "topics": [
        "rdca"
      ]
    },
    {
      "page": "rdca_iter",
      "title": "Iterative RDCA Implementation",
      "topics": [
        "rdca_iter"
      ]
    },
    {
      "page": "rna_experimental",
      "title": "RNA – Experimental Versions",
      "topics": [
        "rna_experimental",
        "rna_prior",
        "rna_rec"
      ]
    },
    {
      "page": "rnabox",
      "title": "Recursive Neyman Algorithm for Optimum Sample Allocation under Box Constraints (RNABOX)",
      "topics": [
        "rnabox"
      ]
    },
    {
      "page": "rounding",
      "title": "Rounding of Numbers",
      "topics": [
        "rounding",
        "round_oric",
        "round_ran"
      ]
    },
    {
      "page": "simplegreedy-capacityscaling",
      "title": "SimpleGreedy and CapacityScaling Algorithms",
      "topics": [
        "CapacityScaling2",
        "simplegreedy-capacityscaling",
        "SimpleGreedy2"
      ]
    },
    {
      "page": "stratallo",
      "title": "Optimum Sample Allocation in Stratified Sampling",
      "topics": [
        "stratallo-package",
        "stratallo"
      ]
    },
    {
      "page": "var_st",
      "title": "Variance of the Stratified pi Estimator of the Population Total",
      "topics": [
        "var_st",
        "var_stsi"
      ]
    }
  ],
  "_pkglogo": "https://github.com/wwojciech/stratallo/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/wwojciech/stratallo/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "cli",
    "lifecycle",
    "rbibutils",
    "Rdpack",
    "rlang"
  ],
  "_vignettes": [
    {
      "source": "stratallo.Rmd",
      "filename": "stratallo.html",
      "title": "Optimum Sample Allocation in Stratified Sampling with stratallo",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Package content",
        "User functions",
        "Datasets",
        "Allocation problems solved with stratallo",
        "1. Optimum allocation with fixed sample size",
        "Examples",
        "2. Minimum-cost allocation under a variance constraint",
        "3. Multi-domain optimum allocation with controlled precision",
        "Note on finite precision arithmetic",
        "References"
      ],
      "created": "2022-04-12 00:04:30",
      "modified": "2026-03-11 13:46:32",
      "commits": 16
    }
  ],
  "_score": 4.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "stratallo",
  "_universes": [
    "wwojciech"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.0.1",
      "date": "2026-06-05T11:28:19.000Z",
      "distro": "noble",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "57613f8a6b86ae5d28561fa7e66201f6c8abc703b9afb59ee69bc26e2fdcf7dd",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.0.1",
      "date": "2026-06-05T11:28:12.000Z",
      "distro": "noble",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "390b3d550d3bb5de35ebf80c3b293a4c4f9fbf4e016996b16230e08d3c974300",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.0.1",
      "date": "2026-06-05T11:28:03.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "c892a32d6474bb49b15ce06e1da3c09d9b3eadb934e309a8acd458a9ce54e709",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.0.1",
      "date": "2026-06-05T11:27:50.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "a47f87af7522ec8b757b1a974ce1594b3edc5864a5ff2b81d0b37bb592e6ff0c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.0.1",
      "date": "2026-06-05T11:28:16.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "4c82af2ce275d823b5d05076ea37ab7cfc6c01d72053229ea65a0cb273f0a768",
      "status": "success",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.0.1",
      "date": "2026-06-05T11:27:44.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "9cdbe766b39a0ae927a9e9675e1910dc5daf95c86170f0aacd389836d2592722",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.0.1",
      "date": "2026-06-05T11:27:35.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "60a39e409639e584cf45bf6382023983fa7d57f628514c6d51f270ad94d4d18b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.0.1",
      "date": "2026-06-05T11:28:16.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "7d1b7046279d4b6f9ff2b040d6e03b63c30912e2fca039c2c979b1b4ba4d69a0",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/27012008573"
    }
  ]
}