All Projects → danheck → metaBMA

danheck / metaBMA

Licence: other
Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis

Programming Languages

r
7636 projects
Stan
76 projects

Projects that are alternatives of or similar to metaBMA

stan-ja
Stanマニュアルの日本語への翻訳プロジェクト
Stars: ✭ 53 (+165%)
Mutual labels:  bayesian-inference, stan
Rstanarm
rstanarm R package for Bayesian applied regression modeling
Stars: ✭ 285 (+1325%)
Mutual labels:  bayesian-inference, stan
lgpr
R-package for interpretable nonparametric modeling of longitudinal data using additive Gaussian processes. Contains functionality for inferring covariate effects and assessing covariate relevances. Various models can be specified using a convenient formula syntax.
Stars: ✭ 22 (+10%)
Mutual labels:  bayesian-inference, stan
CausalQueries
Bayesian inference from binary causal models
Stars: ✭ 20 (+0%)
Mutual labels:  stan, bayes
Brms
brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan
Stars: ✭ 825 (+4025%)
Mutual labels:  bayesian-inference, stan
TrendinessOfTrends
The Trendiness of Trends
Stars: ✭ 14 (-30%)
Mutual labels:  bayesian-inference, stan
EmbracingUncertainty
Material for AMLD 2020 workshop "Bayesian Inference: embracing uncertainty"
Stars: ✭ 23 (+15%)
Mutual labels:  bayesian-inference, stan
geostan
Bayesian spatial analysis
Stars: ✭ 40 (+100%)
Mutual labels:  bayesian-inference, stan
Bda py demos
Bayesian Data Analysis demos for Python
Stars: ✭ 781 (+3805%)
Mutual labels:  bayesian-inference, stan
Rstan
RStan, the R interface to Stan
Stars: ✭ 760 (+3700%)
Mutual labels:  bayesian-inference, stan
metaverse
Package to provide consistent evidence synthesis workflow in R
Stars: ✭ 42 (+110%)
Mutual labels:  meta-analysis, evidence-synthesis
Shinystan
shinystan R package and ShinyStan GUI
Stars: ✭ 172 (+760%)
Mutual labels:  bayesian-inference, stan
noisy-networks-measurements
Noisy network measurement with stan
Stars: ✭ 42 (+110%)
Mutual labels:  bayesian-inference, stan
Bda r demos
Bayesian Data Analysis demos for R
Stars: ✭ 409 (+1945%)
Mutual labels:  bayesian-inference, stan
Projpred
Projection predictive variable selection
Stars: ✭ 76 (+280%)
Mutual labels:  bayesian-inference, stan
Stan
Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
Stars: ✭ 2,177 (+10785%)
Mutual labels:  bayesian-inference, stan
TemporalGPs.jl
Fast inference for Gaussian processes in problems involving time. Partly built on results from https://proceedings.mlr.press/v161/tebbutt21a.html
Stars: ✭ 89 (+345%)
Mutual labels:  bayesian-inference
variational-bayes-cs
Scalable sparse Bayesian learning for large CS recovery problems
Stars: ✭ 17 (-15%)
Mutual labels:  bayesian-inference
statsr
Companion package for the Coursera Statistics with R specialization
Stars: ✭ 67 (+235%)
Mutual labels:  bayesian-inference
Soss.jl
Probabilistic programming via source rewriting
Stars: ✭ 246 (+1130%)
Mutual labels:  bayesian-inference

CRAN_Status_Badge Workflow Licence monthly downloads total downloads

metaBMA

Fixed-effects meta-analyses assume that the effect size $d$ is identical in all studies. In contrast, random-effects meta-analyses assume that effects vary according to a normal distribution with mean $d$ and standard deviation $\tau$. When assuming prior distributions for $d$ and $\tau$, both models can be compared using Bayes factors. Alternatively, posterior model probabilities can be used to compare the evidence for or against an effect (i.e., whether $d = 0$) and the evidence for or against random effects (i.e., whether $\tau = 0$). By using Bayesian model averaging (BMA), both types of tests can be performed by marginalizing over the other question. Most importantly, this allows to test whether an effect exists while accounting for uncertainty whether study heterogeneity exists or not.

Installing metaBMA

To install the latest stable release of metaBMA from CRAN, run:

install.packages("metaBMA")

The latest developer version of metaBMA can be installed from GitHub via:

### install dependencies if necessary:
# install.packages(c("rstan", "rstantools", "bridgesampling",
#                    "LaplacesDemon", "logspline", "mvtnorm",
#                    "coda", "knitr", "methods"))

if (!require("devtools"))
  install.packages("devtools")
devtools::install_github("danheck/metaBMA", ref = "dev")

Note that metaBMA requires the software Stan. In case of issues with using Stan, information how to install the R package rstan is available here: https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started

Getting Started

The most general functions in metaBMA are meta_bma and meta_default, which fit random- and fixed-effects models, compute the inclusion Bayes factor for the presence of an effect and the averaged posterior distribution of the mean effect $d$ (which accounts for uncertainty regarding study heterogeneity).

Moreover, meta_fixed() and meta_random() fit standard meta-analysis models with fixed-effects and random-effects, respectively. The model-specific posteriors for the parameter d can be averaged with bma() and inclusion Bayes factors be computed with inclusion().

The function prior() facilitates the construction and visual inspection of prior distributions. Sensitivity analysis can be performed with the function meta_sensitivity().

For an overview, see: https://danheck.github.io/metaBMA/

References

If you use metaBMA, please cite the software as follows:

Heck, D. W., Gronau, Q. F., & Wagenmakers, E.-J. (2019). metaBMA: Bayesian model averaging for random and fixed effects meta-analysis. https://CRAN.R-project.org/package=metaBMA

An (open-access) introduction to Bayesian meta-analysis with model averaging is available at:

Gronau, Q. F., Heck, D. W., Berkhout, S. W., Haaf, J. M., & Wagenmakers, E.-J. (2021). A primer on Bayesian model-averaged meta-analysis. Advances in Methods and Practices in Psychological Science, 4, 1–19. https://doi.org/10.1177/25152459211031256

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].