{
  "_id": "6afb6080117874b00e23a2cd",
  "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-11-16 17:23:26 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>",
  "_user": "wwojciech",
  "_type": "src",
  "_file": "stratallo_3.0.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/2a892b7fe901330a1fadf74991e4e66f056045663ff7aa8022233cc2435dd224",
  "_filesize": 4378038,
  "_sha256": "2a892b7fe901330a1fadf74991e4e66f056045663ff7aa8022233cc2435dd224",
  "_expires": "2027-02-24T19:58:53.000Z",
  "_created": "2026-11-16T17:23:26.000Z",
  "_published": "2026-11-20T04:08:41.452Z",
  "_upstream": "https://github.com/wwojciech/stratallo",
  "_status": "success",
  "_maintainer": {
    "name": "Wojciech Wójciak",
    "email": "wojciech.wojciak@gmail.com",
    "login": "wwojciech",
    "description": "Mathematician, Statistical Programmer.\n",
    "uuid": 11532997
  },
  "_jobs": [
    {
      "job": 133477020599,
      "time": 132,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "14254470071"
    },
    {
      "job": 133477020462,
      "time": 125,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "WARNING",
      "artifact": "14253675039"
    },
    {
      "job": 133477020432,
      "time": 208,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "14255126728"
    },
    {
      "job": 133477020479,
      "time": 218,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "WARNING",
      "artifact": "14264512131"
    },
    {
      "job": 133474277103,
      "time": 180,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14250861908"
    },
    {
      "job": 133477020299,
      "time": 92,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14251207245"
    },
    {
      "job": 133477020557,
      "time": 81,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "14249604731"
    },
    {
      "job": 133477020569,
      "time": 92,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "14252412713"
    },
    {
      "job": 133477020601,
      "time": 69,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "WARNING",
      "artifact": "14254765163"
    }
  ],
  "_buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494",
  "_commit": {
    "id": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
    "author": "Wojtek <11532997+wwojciech@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1780650811
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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",
    "followers": 0,
    "description": "Mathematician, Statistical Programmer."
  },
  "_downloads": {
    "count": 411,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stratallo"
  },
  "_devurl": "https://github.com/wwojciech/stratallo",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/stratallo.html"
  ],
  "_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-11-16T17:29:20.000Z",
      "distro": "resolute",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "https://r2.ropensci.org/7fa834ed3319957f8dcbb656d31a25c2d1f0e882a5740687d47485191b2019c5",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "3.0.1",
      "date": "2026-11-16T17:27:20.000Z",
      "distro": "resolute",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "https://r2.ropensci.org/972157fd812e30dde39d34df3fe6ca839653cb700a2cadf200c551f022643c31",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.0.1",
      "date": "2026-11-16T17:54:58.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "https://r2.ropensci.org/ae03c55e0e2a97284f98f70ba47acaa7b6d845f5f11fde35d53400126b9d88fa",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "3.0.1",
      "date": "2026-11-16T19:57:04.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "https://r2.ropensci.org/44c6d6cb5cfa12b8659d1302b784162e3724c553bd907506392f21e616c7b217",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.0.1",
      "date": "2026-11-16T17:27:04.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "https://r2.ropensci.org/fbb45ea4930e439a8a87e79bd38e24d3d902a6dc58714e207d3ca871add52c4c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.0.1",
      "date": "2026-11-16T17:25:28.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "https://r2.ropensci.org/b89e26da0e18f33fd6f575705c35cfb7c129f282342d1f30530c38607df56426",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.0.1",
      "date": "2026-11-16T17:32:05.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "https://r2.ropensci.org/9095eb55cf05c3e90854023a9badb03506c6ad1570904a0b0c466575199a0306",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "3.0.1",
      "date": "2026-11-16T17:31:54.000Z",
      "commit": "8183d98227f28d7a4b070eee3300e9bebe7bea8d",
      "fileid": "https://r2.ropensci.org/bdb6f75a04ed1f4c066e0f09961b2613268029faf5bfbcc8a88b0fa9a808e45f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/wwojciech/actions/runs/43916539494"
    }
  ]
}