{"id":16469249,"url":"https://github.com/danheck/metabma","last_synced_at":"2025-03-16T18:31:29.120Z","repository":{"id":53732043,"uuid":"80750374","full_name":"danheck/metaBMA","owner":"danheck","description":"Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis","archived":false,"fork":false,"pushed_at":"2024-02-08T09:15:37.000Z","size":10408,"stargazers_count":28,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T04:31:49.037Z","etag":null,"topics":["bayes","bayes-factor","bayesian-inference","evidence-synthesis","meta-analysis","model-averaging","r","stan"],"latest_commit_sha":null,"homepage":"https://danheck.github.io/metaBMA/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danheck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-02-02T17:35:07.000Z","updated_at":"2024-06-24T04:21:56.000Z","dependencies_parsed_at":"2022-08-24T14:42:25.850Z","dependency_job_id":"9beb2e73-8193-4858-a2c4-233935128a63","html_url":"https://github.com/danheck/metaBMA","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danheck%2FmetaBMA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danheck%2FmetaBMA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danheck%2FmetaBMA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danheck%2FmetaBMA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danheck","download_url":"https://codeload.github.com/danheck/metaBMA/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910666,"owners_count":20367546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bayes","bayes-factor","bayesian-inference","evidence-synthesis","meta-analysis","model-averaging","r","stan"],"created_at":"2024-10-11T12:06:23.054Z","updated_at":"2025-03-16T18:31:28.467Z","avatar_url":"https://github.com/danheck.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/metaBMA)](https://cran.r-project.org/package=metaBMA)\n[![Workflow](https://github.com/danheck/metaBMA/actions/workflows/check-full.yaml/badge.svg)](https://github.com/danheck/metaBMA/actions/workflows/check-full.yaml)\n[![Licence](https://img.shields.io/badge/licence-GPL--2-green.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)\n[![monthly downloads](https://cranlogs.r-pkg.org/badges/metaBMA)](https://cranlogs.r-pkg.org/badges/metaBMA)\n[![total downloads](https://cranlogs.r-pkg.org/badges/grand-total/metaBMA)](https://cranlogs.r-pkg.org/badges/grand-total/metaBMA)\n\n\n# metaBMA\n\nFixed-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.\n\n\n## Installing metaBMA\n\nTo install the latest stable release of `metaBMA` from CRAN, run:\n\n```r\ninstall.packages(\"metaBMA\")\n```\n\nThe latest developer version of `metaBMA` can be installed from GitHub via:\n\n```r\n### install dependencies if necessary:\n# install.packages(c(\"rstan\", \"rstantools\", \"bridgesampling\",\n#                    \"LaplacesDemon\", \"logspline\", \"mvtnorm\",\n#                    \"coda\", \"knitr\", \"methods\"))\n\nif (!require(\"devtools\"))\n  install.packages(\"devtools\")\ndevtools::install_github(\"danheck/metaBMA\")\n```\n\nNote that `metaBMA` requires the software [Stan](http://mc-stan.org/). \nIn case of issues with using Stan, information how to install the R package `rstan` is available here:\nhttps://github.com/stan-dev/rstan/wiki/RStan-Getting-Started\n\n\n## Getting Started\n\nThe 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).\n\nMoreover, `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()`. \n\nThe function `prior()` facilitates the construction and visual inspection of prior distributions. Sensitivity analysis can be performed with the function `meta_sensitivity()`.\n\nFor an overview, see: https://danheck.github.io/metaBMA/\n\n\n## References\n\nIf you use `metaBMA`, please cite the software as follows:\n\nHeck, D. W., Gronau, Q. F., \u0026 Wagenmakers, E.-J. (2019). \nmetaBMA: Bayesian model averaging for random and fixed effects meta-analysis. https://CRAN.R-project.org/package=metaBMA\n\nAn (open-access) introduction to Bayesian meta-analysis with model averaging is available at:\n\nGronau, Q. F., Heck, D. W., Berkhout, S. W., Haaf, J. M., \u0026 Wagenmakers, E.-J. (2021). \nA primer on Bayesian model-averaged meta-analysis. \n*Advances in Methods and Practices in Psychological Science, 4*, 1–19. \nhttps://doi.org/10.1177/25152459211031256\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanheck%2Fmetabma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanheck%2Fmetabma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanheck%2Fmetabma/lists"}