Package: bang 1.0.4

Paul J. Northrop

bang: Bayesian Analysis, No Gibbs

Provides functions for the Bayesian analysis of some simple commonly-used models, without using Markov Chain Monte Carlo (MCMC) methods such as Gibbs sampling. The 'rust' package <https://cran.r-project.org/package=rust> is used to simulate a random sample from the required posterior distribution, using the generalized ratio-of-uniforms method. See Wakefield, Gelfand and Smith (1991) <doi:10.1007/BF01889987> for details. At the moment three conjugate hierarchical models are available: beta-binomial, gamma-Poisson and a 1-way analysis of variance (ANOVA).

Authors:Paul J. Northrop [aut, cre, cph], Benjamin D. Hall [aut, cph]

bang_1.0.4.tar.gz
bang_1.0.4.tar.gz(r-4.5-noble)bang_1.0.4.tar.gz(r-4.4-noble)
bang_1.0.4.tgz(r-4.4-emscripten)bang_1.0.4.tgz(r-4.3-emscripten)
bang.pdf |bang.html
bang/json (API)
NEWS

# Install 'bang' in R:
install.packages('bang', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/paulnorthrop/bang/issues

Datasets:
  • coagulation - Coagulation time data
  • pump - Pump-failure data
  • rat - Rat tumor data
  • temp1 - Mid 21st Century Global Temperature Projection Data
  • temp2 - Late 21st Century Global Temperature Projection Data
  • weight_gain - Weight Gained by Rats

4.15 score 35 scripts 830 downloads 7 exports 48 dependencies

Last updated 4 months agofrom:2ea84f9df4. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 16 2024
R-4.5-linuxOKOct 16 2024

Exports:hanova1hefpp_checkset_user_priorsim_pred_beta_binomsim_pred_gamma_poissim_pred_hanova1

Dependencies:abindbackportsbayesplotcheckmateclicolorspacedistributionaldplyrfansifarvergenericsggplot2ggridgesgluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmatrixStatsmgcvmunsellnlmenumDerivpillarpkgconfigplyrposteriorR6RColorBrewerRcppRcppArmadilloreshape2rlangrustscalesstringistringrtensorAtibbletidyselectutf8vctrsviridisLitewithr

Conjugate Hierarchical Models

Rendered frombang-b-hef-vignette.Rmdusingknitr::rmarkdownon Oct 16 2024.

Last update: 2023-12-03
Started: 2020-02-24

Hierarchical 1-way Analysis of Variance

Rendered frombang-c-anova-vignette.Rmdusingknitr::rmarkdownon Oct 16 2024.

Last update: 2023-12-03
Started: 2020-02-24

Introducing bang: Bayesian Analysis, No Gibbs

Rendered frombang-a-vignette.Rmdusingknitr::rmarkdownon Oct 16 2024.

Last update: 2023-12-03
Started: 2020-02-24

Posterior Predictive Checking

Rendered frombang-d-ppc-vignette.Rmdusingknitr::rmarkdownon Oct 16 2024.

Last update: 2023-12-03
Started: 2020-02-24