{
  "_id": "6a106c61acfb0bcc41caa859",
  "Package": "bang",
  "Title": "Bayesian Analysis, No Gibbs",
  "Version": "1.0.4.9000",
  "Date": "2025-02-06",
  "Authors@R": "c(person(c(\"Paul\", \"J.\"), \"Northrop\", email = \"p.northrop@ucl.ac.uk\",\nrole = c(\"aut\", \"cre\", \"cph\")),\nperson(c(\"Benjamin\", \"D.\"), \"Hall\", email = \"benjamin.hall.16@ucl.ac.uk\",\nrole = c(\"aut\", \"cph\")))",
  "Description": "Provides functions for the Bayesian analysis of some\nsimple commonly-used models, without using Markov Chain Monte\nCarlo (MCMC) methods such as Gibbs sampling.  The 'rust'\npackage <https://cran.r-project.org/package=rust> is used to\nsimulate a random sample from the required posterior\ndistribution, using the generalized ratio-of-uniforms method.\nSee Wakefield, Gelfand and Smith (1991)\n<DOI:10.1007/BF01889987> for details. At the moment three\nconjugate hierarchical models are available: beta-binomial,\ngamma-Poisson and a 1-way analysis of variance (ANOVA).",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://paulnorthrop.github.io/bang/,\nhttps://github.com/paulnorthrop/bang",
  "BugReports": "https://github.com/paulnorthrop/bang/issues",
  "License": "GPL (>= 2)",
  "LazyData": "true",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://paulnorthrop.r-universe.dev",
  "Date/Publication": "2026-02-06 23:11:09 UTC",
  "RemoteUrl": "https://github.com/paulnorthrop/bang",
  "RemoteRef": "HEAD",
  "RemoteSha": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-07 09:01:17 UTC",
    "User": "root"
  },
  "Author": "Paul J. Northrop [aut, cre, cph],\nBenjamin D. Hall [aut, cph]",
  "Maintainer": "Paul J. Northrop <p.northrop@ucl.ac.uk>",
  "MD5sum": "388768c223b37987a1e0d8eea847ec3a",
  "_user": "paulnorthrop",
  "_type": "src",
  "_file": "bang_1.0.4.9000.tar.gz",
  "_fileid": "4ae938ac74cfb98cecd60c35b009e218aa65a2294a6296f7377ab3253b62a135",
  "_filesize": 2807510,
  "_sha256": "4ae938ac74cfb98cecd60c35b009e218aa65a2294a6296f7377ab3253b62a135",
  "_created": "2026-05-07T09:01:17.000Z",
  "_published": "2026-05-22T14:46:57.416Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77403262431,
      "time": 164,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6851067755"
    },
    {
      "job": 77403262633,
      "time": 160,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6851066219"
    },
    {
      "job": 77403262079,
      "time": 136,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6851055460"
    },
    {
      "job": 77403262069,
      "time": 128,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6851052917"
    },
    {
      "job": 77403261763,
      "time": 223,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6851006028"
    },
    {
      "job": 77403261609,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7163354993"
    },
    {
      "job": 77403262215,
      "time": 159,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6851064000"
    },
    {
      "job": 77403263001,
      "time": 117,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6851049257"
    },
    {
      "job": 77403262628,
      "time": 152,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6851061821"
    }
  ],
  "_buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/paulnorthrop/bang",
  "_commit": {
    "id": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
    "author": "Paul Northrop <p.northrop@ucl.ac.uk>",
    "committer": "Paul Northrop <p.northrop@ucl.ac.uk>",
    "message": "pkgdown\n",
    "time": 1770419469
  },
  "_maintainer": {
    "name": "Paul J. Northrop",
    "email": "p.northrop@ucl.ac.uk",
    "login": "paulnorthrop",
    "uuid": 22778905
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.3.0",
      "role": "Depends"
    },
    {
      "package": "bayesplot",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "rust",
      "version": ">= 1.2.2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 2.2.1",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "paulnorthrop",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-47",
      "n": 4
    },
    {
      "week": "2026-06",
      "n": 3
    }
  ],
  "_tags": [],
  "_topics": [
    "anova",
    "bayesian",
    "beta",
    "binomial",
    "gamma",
    "gibbs",
    "hierarchical",
    "poisson"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "paulnorthrop",
      "count": 276,
      "uuid": 22778905
    }
  ],
  "_userbio": {
    "uuid": 22778905,
    "type": "user",
    "name": "Paul Northrop"
  },
  "_downloads": {
    "count": 3167,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bang"
  },
  "_devurl": "https://github.com/paulnorthrop/bang",
  "_pkgdown": "https://paulnorthrop.github.io/bang/",
  "_searchresults": 35,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bang.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/paulnorthrop/bang",
  "_realowner": "paulnorthrop",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2017-11-20"
    },
    {
      "version": "1.0.1",
      "date": "2020-02-24"
    },
    {
      "version": "1.0.2",
      "date": "2023-09-02"
    },
    {
      "version": "1.0.3",
      "date": "2023-12-02"
    },
    {
      "version": "1.0.4",
      "date": "2024-07-17"
    }
  ],
  "_exports": [
    "hanova1",
    "hef",
    "pp_check",
    "set_user_prior",
    "sim_pred_beta_binom",
    "sim_pred_gamma_pois",
    "sim_pred_hanova1"
  ],
  "_datasets": [
    {
      "name": "coagulation",
      "title": "Coagulation time data",
      "object": "coagulation",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "diet"
      ],
      "rows": 24,
      "table": true,
      "tojson": true
    },
    {
      "name": "pump",
      "title": "Pump-failure data",
      "object": "pump",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "failures",
        "time"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "rat",
      "title": "Rat tumor data",
      "object": "rat",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "y",
        "n"
      ],
      "rows": 71,
      "table": true,
      "tojson": true
    },
    {
      "name": "temp1",
      "title": "Mid 21st Century Global Temperature Projection Data",
      "object": "temp1",
      "class": [
        "data.frame"
      ],
      "fields": [
        "index",
        "GCM",
        "RCP",
        "run"
      ],
      "rows": 270,
      "table": true,
      "tojson": true
    },
    {
      "name": "temp2",
      "title": "Late 21st Century Global Temperature Projection Data",
      "object": "temp2",
      "class": [
        "data.frame"
      ],
      "fields": [
        "index",
        "GCM",
        "RCP",
        "run"
      ],
      "rows": 270,
      "table": true,
      "tojson": true
    },
    {
      "name": "weight_gain",
      "title": "Weight Gained by Rats",
      "object": "weight_gain",
      "class": [
        "data.frame"
      ],
      "fields": [
        "source",
        "type",
        "weightgain"
      ],
      "rows": 40,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bang-package",
      "title": "bang: Bayesian Analysis, No Gibbs",
      "topics": [
        "bang-package",
        "bang"
      ]
    },
    {
      "page": "coagulation",
      "title": "Coagulation time data",
      "topics": [
        "coagulation"
      ]
    },
    {
      "page": "hanova1",
      "title": "Posterior sampling for a 1-way hierarchical ANOVA",
      "topics": [
        "hanova1"
      ]
    },
    {
      "page": "hef",
      "title": "Hierarchical Exponential Family Model",
      "topics": [
        "hef"
      ]
    },
    {
      "page": "plot.hef",
      "title": "Plot diagnostics for a hef object",
      "topics": [
        "plot.hef"
      ]
    },
    {
      "page": "pp_check.hef",
      "title": "Posterior predictive checks for a hef object",
      "topics": [
        "pp_check",
        "pp_check.hef"
      ]
    },
    {
      "page": "print.hef",
      "title": "Print method for objects of class \"hef\"",
      "topics": [
        "print.hef"
      ]
    },
    {
      "page": "print.summary.hef",
      "title": "Print method for objects of class \"summary.hef\"",
      "topics": [
        "print.summary.hef"
      ]
    },
    {
      "page": "pump",
      "title": "Pump-failure data",
      "topics": [
        "pump"
      ]
    },
    {
      "page": "rat",
      "title": "Rat tumor data",
      "topics": [
        "rat"
      ]
    },
    {
      "page": "set_user_prior",
      "title": "Set a user-defined prior",
      "topics": [
        "set_user_prior"
      ]
    },
    {
      "page": "sim_pred_beta_binom",
      "title": "Simulate from a beta-binomial posterior predictive distribution",
      "topics": [
        "sim_pred_beta_binom"
      ]
    },
    {
      "page": "sim_pred_gamma_pois",
      "title": "Simulate from a gamma-Poisson posterior predictive distribution",
      "topics": [
        "sim_pred_gamma_pois"
      ]
    },
    {
      "page": "sim_pred_hanova1",
      "title": "Simulate from a one-way hierarchical ANOVA posterior predictive distribution",
      "topics": [
        "sim_pred_hanova1"
      ]
    },
    {
      "page": "summary.hef",
      "title": "Summarizing hef objects",
      "topics": [
        "summary.hef"
      ]
    },
    {
      "page": "temp1",
      "title": "Mid 21st Century Global Temperature Projection Data",
      "topics": [
        "temp1"
      ]
    },
    {
      "page": "temp2",
      "title": "Late 21st Century Global Temperature Projection Data",
      "topics": [
        "temp2"
      ]
    },
    {
      "page": "weight_gain",
      "title": "Weight Gained by Rats",
      "topics": [
        "weight_gain"
      ]
    }
  ],
  "_readme": "https://github.com/paulnorthrop/bang/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "bayesplot",
    "checkmate",
    "cli",
    "cpp11",
    "distributional",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "ggridges",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "plyr",
    "posterior",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "reshape2",
    "rlang",
    "rust",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "bang-b-hef-vignette.Rmd",
      "filename": "bang-b-hef-vignette.html",
      "title": "Conjugate Hierarchical Models",
      "author": "Paul Northrop",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Beta-binomial model",
        "Gamma-Poisson Model",
        "References"
      ],
      "created": "2020-02-21 09:38:45",
      "modified": "2025-11-18 19:41:58",
      "commits": 4
    },
    {
      "source": "bang-c-anova-vignette.Rmd",
      "filename": "bang-c-anova-vignette.html",
      "title": "Hierarchical 1-way Analysis of Variance",
      "author": "Paul J. Northrop",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Late 21st Century Global Temperature Projection Data",
        "Coagulation time data",
        "Appendix",
        "Marginal posterior density of $\\boldsymbol{\\mathbf{\\phi}}$",
        "A special case",
        "The conditional posterior density of $\\boldsymbol{\\mathbf{\\theta}}$ given $\\boldsymbol{\\mathbf{\\phi}}$",
        "Factorisations for simulation",
        "References"
      ],
      "created": "2020-02-21 09:38:45",
      "modified": "2025-11-18 19:41:58",
      "commits": 3
    },
    {
      "source": "bang-a-vignette.Rmd",
      "filename": "bang-a-vignette.html",
      "title": "Introducing bang: Bayesian Analysis, No Gibbs",
      "author": "Paul Northrop",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The generalized ratio-of-uniforms method as an alternative to MCMC",
        "An example: hierarchical beta-binomial model",
        "References"
      ],
      "created": "2020-02-21 09:38:45",
      "modified": "2020-02-24 08:55:20",
      "commits": 4
    },
    {
      "source": "bang-d-ppc-vignette.Rmd",
      "filename": "bang-d-ppc-vignette.html",
      "title": "Posterior Predictive Checking",
      "author": "Paul J. Northrop",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Beta-binomial model",
        "Gamma-Poisson model",
        "One-way Hierarchical ANOVA",
        "References"
      ],
      "created": "2020-02-21 09:38:45",
      "modified": "2020-02-24 08:16:16",
      "commits": 3
    }
  ],
  "_score": 6.248836090378113,
  "_indexed": true,
  "_nocasepkg": "bang",
  "_universes": [
    "paulnorthrop"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.4.9000",
      "date": "2026-05-07T09:03:41.000Z",
      "distro": "noble",
      "commit": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
      "fileid": "f461d56c3856ce953c9986f7461446f1bab09c1bb9319d00dcbddf8bda276fe1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.4.9000",
      "date": "2026-05-07T09:03:40.000Z",
      "distro": "noble",
      "commit": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
      "fileid": "a1b5279c97958ef09cf37b32c4649ed0d75f23f28c6c9bbc440930afbbcc1787",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.4.9000",
      "date": "2026-05-07T09:03:14.000Z",
      "commit": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
      "fileid": "d13404691f7b6c0c85c8456c26fc4dd0adc929bef59a1d6ceb6d0b0866286878",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.4.9000",
      "date": "2026-05-07T09:03:12.000Z",
      "commit": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
      "fileid": "4a19001a4f7ac564618f90de205f010864f153df8b6c8d1c2ef0729f9b59308b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.4.9000",
      "date": "2026-05-07T09:03:20.000Z",
      "commit": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
      "fileid": "fdb70cbf2643fe7571666035fb97d973712fc1f784aacb2d3f9af99173fda028",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.4.9000",
      "date": "2026-05-07T09:02:42.000Z",
      "commit": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
      "fileid": "680494222b2e107192955994b6bc525530a7081150593432fc9817a1b4905ff7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.4.9000",
      "date": "2026-05-07T09:03:16.000Z",
      "commit": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
      "fileid": "b563f0dfcb54a99525e31eefe1a639548cbcca56161a8d114227052869efdfc7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.4.9000",
      "date": "2026-05-22T14:46:35.000Z",
      "commit": "3ce8d72b600a8ab81ca6248801184e508801c5ec",
      "fileid": "a0755c3e7d1c43dff12bf76399da7a52cf6b47ff53ea57c7030870766b17bb26",
      "status": "success",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/25486163355"
    }
  ]
}