{
  "_id": "6a0f6516acfb0bcc41c5cfbb",
  "Package": "bbw",
  "Type": "Package",
  "Title": "Blocked Weighted Bootstrap",
  "Version": "0.3.1.9000",
  "Authors@R": "c(\nperson(\"Mark\", \"Myatt\", comment = c(ORCID = \"0000-0003-1119-1474\"),\nemail = \"mark@brixtonhealth.com\", role = c(\"aut\", \"cph\")),\nperson(\"Ernest\", \"Guevarra\", comment = c(ORCID = \"0000-0002-4887-4415\"),\nemail = \"ernestgmd@gmail.com\", role = c(\"aut\", \"cre\", \"cph\")))",
  "Description": "The blocked weighted bootstrap (BBW) is an estimation\ntechnique for use with data from two-stage cluster sampled\nsurveys in which either prior weighting (e.g.\npopulation-proportional sampling or PPS as used in Standardized\nMonitoring and Assessment of Relief and Transitions or SMART\nsurveys) or posterior weighting (e.g. as used in rapid\nassessment method or RAM and simple spatial sampling method or\nS3M surveys) is implemented. See Cameron et al (2008)\n<doi:10.1162/rest.90.3.414> for application of bootstrap to\ncluster samples. See Aaron et al (2016)\n<doi:10.1371/journal.pone.0163176> and Aaron et al (2016)\n<doi:10.1371/journal.pone.0162462> for application of the\nblocked weighted bootstrap to estimate indicators from\ntwo-stage cluster sampled surveys.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "URL": "https://github.com/rapidsurveys/bbw, https://rapidsurveys.io/bbw/",
  "BugReports": "https://github.com/rapidsurveys/bbw/issues",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://rapidsurveys.r-universe.dev",
  "Date/Publication": "2026-01-21 08:43:53 UTC",
  "RemoteUrl": "https://github.com/rapidsurveys/bbw",
  "RemoteRef": "HEAD",
  "RemoteSha": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-21 10:11:22 UTC",
    "User": "root"
  },
  "Author": "Mark Myatt [aut, cph] (ORCID: <https://orcid.org/0000-0003-1119-1474>),\nErnest Guevarra [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-4887-4415>)",
  "Maintainer": "Ernest Guevarra <ernestgmd@gmail.com>",
  "MD5sum": "7ec01ea8115522976e0722967d0c180d",
  "_user": "rapidsurveys",
  "_type": "src",
  "_file": "bbw_0.3.1.9000.tar.gz",
  "_fileid": "843f4e7fa1800d4772cb103af785fa2ab64edf7664b75d2db5108f73d7e89ba1",
  "_filesize": 2173455,
  "_sha256": "843f4e7fa1800d4772cb103af785fa2ab64edf7664b75d2db5108f73d7e89ba1",
  "_created": "2026-05-21T10:11:22.000Z",
  "_published": "2026-05-21T20:03:34.453Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77258005043,
      "time": 182,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7133072470"
    },
    {
      "job": 77258004652,
      "time": 183,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133072678"
    },
    {
      "job": 77258004617,
      "time": 246,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7133083812"
    },
    {
      "job": 77258004475,
      "time": 179,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133063049"
    },
    {
      "job": 77258003853,
      "time": 213,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133011986"
    },
    {
      "job": 77258004093,
      "time": 129,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7145949713"
    },
    {
      "job": 77258004580,
      "time": 128,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7133055335"
    },
    {
      "job": 77258005545,
      "time": 118,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7133051568"
    },
    {
      "job": 77258004952,
      "time": 120,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133051932"
    }
  ],
  "_buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/rapidsurveys/bbw",
  "_commit": {
    "id": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
    "author": "Ernest Guevarra <5742010+ernestguevarra@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #78 from rapidsurveys/dev\n\nIncrement version number to 0.3.1.9000",
    "time": 1768985033
  },
  "_maintainer": {
    "name": "Ernest Guevarra",
    "email": "ernestgmd@gmail.com",
    "login": "ernestguevarra",
    "mastodon": "@ernestguevarra@mastodon.social",
    "bluesky": "@ernest.guevarra.io",
    "linkedin": "in/ernestguevarra",
    "orcid": "0000-0002-4887-4415",
    "description": "Public Health Specialist, Spatial Epidemiologist, R Developer\n",
    "uuid": 5742010
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "car",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "parallelly",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    }
  ],
  "_owner": "rapidsurveys",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-04",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v0.3.1",
      "date": "2026-01-20"
    }
  ],
  "_topics": [
    "bootstrapping-statistics",
    "ram",
    "surveys"
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "ernestguevarra",
      "count": 299,
      "uuid": 5742010
    }
  ],
  "_userbio": {
    "uuid": 39089090,
    "type": "organization",
    "name": "RapidSurveys"
  },
  "_downloads": {
    "count": 263,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bbw"
  },
  "_devurl": "https://github.com/rapidsurveys/bbw",
  "_pkgdown": "https://rapidsurveys.io/bbw/",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bbw.html",
    "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",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/rapidsurveys/bbw",
  "_realowner": "rapidsurveys",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.3",
      "date": "2018-01-17"
    },
    {
      "version": "0.2.0",
      "date": "2022-05-30"
    },
    {
      "version": "0.3.0",
      "date": "2025-01-17"
    },
    {
      "version": "0.3.1",
      "date": "2026-01-21"
    }
  ],
  "_exports": [
    "boot_bw",
    "boot_bw_estimate",
    "boot_bw_parallel",
    "boot_bw_sample_clusters",
    "boot_bw_sample_within_clusters",
    "boot_bw_sequential",
    "boot_bw_weight",
    "bootBW",
    "bootClassic",
    "bootPROBIT",
    "estimate_total",
    "recode"
  ],
  "_datasets": [
    {
      "name": "indicatorsCH1",
      "title": "Child Morbidity, Health Service Coverage, Anthropometry",
      "object": "indicatorsCH1",
      "class": [
        "data.frame"
      ],
      "fields": [
        "psu",
        "region",
        "district",
        "mID",
        "cID",
        "ch1",
        "ch2",
        "ch3",
        "ch4",
        "ch5",
        "ch6",
        "ch7",
        "sex",
        "muac1",
        "muac2",
        "oedema"
      ],
      "rows": 3090,
      "table": true,
      "tojson": true
    },
    {
      "name": "indicatorsCH2",
      "title": "Infant and Child Feeding Index",
      "object": "indicatorsCH2",
      "class": [
        "data.frame"
      ],
      "fields": [
        "psu",
        "region",
        "district",
        "mID",
        "cID",
        "ebf",
        "cbf",
        "ddd",
        "mfd",
        "icfi",
        "iycf",
        "icfiProp",
        "age",
        "bf",
        "bfStop"
      ],
      "rows": 2083,
      "table": true,
      "tojson": true
    },
    {
      "name": "indicatorsHH",
      "title": "Mother Indicators Dataset",
      "object": "indicatorsHH",
      "class": [
        "data.frame"
      ],
      "fields": [
        "psu",
        "region",
        "district",
        "mID",
        "mMUAC",
        "anc1",
        "anc2",
        "anc3",
        "anc4",
        "wash1",
        "wash2",
        "wash3",
        "wash4",
        "wash5",
        "wash6",
        "wash7a",
        "wash7b",
        "hhs1",
        "hhs2",
        "hhs3",
        "hhs4",
        "mfg",
        "pVitA",
        "aVitA",
        "xVitA",
        "iron"
      ],
      "rows": 2135,
      "table": true,
      "tojson": true
    },
    {
      "name": "somalia_population",
      "title": "Somalia regional population in 2022",
      "object": "somalia_population",
      "class": [
        "data.frame"
      ],
      "fields": [
        "region",
        "total",
        "urban",
        "rural",
        "idp",
        "urban_stressed",
        "rural_stressed",
        "idp_stressed",
        "urban_crisis",
        "rural_crisis",
        "idp_crisis",
        "urban_emergency",
        "rural_emergency",
        "idp_emergency",
        "urban_catastrophe",
        "rural_catastrophe",
        "idp_catastrophe",
        "percent_at_least_crisis"
      ],
      "rows": 19,
      "table": true,
      "tojson": true
    },
    {
      "name": "villageData",
      "title": "Cluster Population Weights Dataset",
      "object": "villageData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "region",
        "district",
        "psu",
        "lon",
        "lat",
        "pop"
      ],
      "rows": 116,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "boot_bw",
      "title": "Blocked Weighted Bootstrap - vectorised and parallel",
      "topics": [
        "boot_bw",
        "boot_bw_parallel",
        "boot_bw_sample_clusters",
        "boot_bw_sample_within_clusters",
        "boot_bw_sequential",
        "boot_bw_weight"
      ]
    },
    {
      "page": "boot_bw_estimate",
      "title": "Estimate median and confidence intervals from bootstrap replicates",
      "topics": [
        "boot_bw_estimate"
      ]
    },
    {
      "page": "bootBW",
      "title": "Blocked Weighted Bootstrap",
      "topics": [
        "bootBW"
      ]
    },
    {
      "page": "bootClassic",
      "title": "Simple proportion statistics function for bootstrap estimation",
      "topics": [
        "bootClassic"
      ]
    },
    {
      "page": "bootPROBIT",
      "title": "PROBIT statistics function for bootstrap estimation",
      "topics": [
        "bootPROBIT"
      ]
    },
    {
      "page": "estimate_total",
      "title": "Post-stratification analysis",
      "topics": [
        "estimate_total"
      ]
    },
    {
      "page": "indicatorsCH1",
      "title": "Child Morbidity, Health Service Coverage, Anthropometry",
      "topics": [
        "indicatorsCH1"
      ]
    },
    {
      "page": "indicatorsCH2",
      "title": "Infant and Child Feeding Index",
      "topics": [
        "indicatorsCH2"
      ]
    },
    {
      "page": "indicatorsHH",
      "title": "Mother Indicators Dataset",
      "topics": [
        "indicatorsHH"
      ]
    },
    {
      "page": "recode",
      "title": "Recode",
      "topics": [
        "recode"
      ]
    },
    {
      "page": "somalia_population",
      "title": "Somalia regional population in 2022",
      "topics": [
        "somalia_population"
      ]
    },
    {
      "page": "villageData",
      "title": "Cluster Population Weights Dataset",
      "topics": [
        "villageData"
      ]
    }
  ],
  "_pkglogo": "https://github.com/rapidsurveys/bbw/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/rapidsurveys/bbw/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "codetools",
    "colorspace",
    "cowplot",
    "cpp11",
    "Deriv",
    "doBy",
    "doParallel",
    "dplyr",
    "farver",
    "foreach",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "microbenchmark",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "parallelly",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "bbw.Rmd",
      "filename": "bbw.html",
      "title": "Blocked Weighted Bootstrap",
      "author": "Mark Myatt and Ernest Guevarra",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Features of blocked weighted bootstrap",
        "Posterior weighting through resampling",
        "Development history",
        "Advantages"
      ],
      "created": "2018-01-14 18:52:30",
      "modified": "2026-01-20 22:13:55",
      "commits": 22
    },
    {
      "source": "bbw-estimation.Rmd",
      "filename": "bbw-estimation.html",
      "title": "Blocked weighted bootstrap estimation",
      "author": "Ernest Guevarra",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Original bootstrapping workflow",
        "Bootstrap resampling with bootBW()",
        "Bootstrap estimation",
        "Stratified bootstrap resampling",
        "Alternative blocked weighted bootstrap function set",
        "Bootstrap resampling with boot_bw()"
      ],
      "created": "2025-01-08 17:34:30",
      "modified": "2025-01-11 21:59:53",
      "commits": 5
    },
    {
      "source": "bbw-parallel.Rmd",
      "filename": "bbw-parallel.html",
      "title": "Using bbw with parallel computation",
      "author": "Ernest Guevarra",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Bootstrap resampling without parallelisation",
        "Using one parameter and 400 replicates",
        "Using varying number of parameters and 400 replicates",
        "Bootstrap resampling with parallelisation"
      ],
      "created": "2025-01-15 14:32:16",
      "modified": "2025-01-15 14:32:16",
      "commits": 1
    }
  ],
  "_score": 5.130333768495006,
  "_indexed": true,
  "_nocasepkg": "bbw",
  "_universes": [
    "rapidsurveys",
    "ernestguevarra"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1.9000",
      "date": "2026-05-21T10:13:43.000Z",
      "distro": "noble",
      "commit": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
      "fileid": "81043c25cd2e8a558a2e4cf42690c994c7dc74c1cbd6f4db9733e92bb8b81eb3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.1.9000",
      "date": "2026-05-21T10:13:47.000Z",
      "distro": "noble",
      "commit": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
      "fileid": "3d3ad0d25936eb49b5ba6b986b4bcc8b3282aca134864e790e714370df877a4a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1.9000",
      "date": "2026-05-21T10:14:34.000Z",
      "commit": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
      "fileid": "d0fdf497b5413bdf3de1a2b6a57e376cdfc8ed53874cd3f45922d5a1cc7d0778",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.1.9000",
      "date": "2026-05-21T10:13:24.000Z",
      "commit": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
      "fileid": "1fa8372ce0107568184b4665f07468c8708845caed74ff1ee66dd451ebc9c349",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1.9000",
      "date": "2026-05-21T20:03:05.000Z",
      "commit": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
      "fileid": "6ab88fc49cc531428cbc3161547ed8419c480f48f7e51a1e52e0d7ecd3683827",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1.9000",
      "date": "2026-05-21T10:12:42.000Z",
      "commit": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
      "fileid": "29a28ec6912e9af46f8784efd5b2830610aa33fab5422002e117c8d17e47683f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1.9000",
      "date": "2026-05-21T10:12:35.000Z",
      "commit": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
      "fileid": "45e85a9bc694901f6700a1b8b29fbb8054c09604c5cd21427c38266dce838482",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.1.9000",
      "date": "2026-05-21T10:12:44.000Z",
      "commit": "b9abe7aac19fa8b8b70afe9f9305d93aef2d2dbb",
      "fileid": "fe697cff6453e2c9278e718e433409250b490a00c9e008e8a75aef96af250df3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rapidsurveys/actions/runs/26219503229"
    }
  ]
}