ra4bayesmeta-package: Reference Analysis for Bayesian Meta-Analysis

ra4bayesmeta-packageR Documentation

Reference Analysis for Bayesian Meta-Analysis

Description

Functionality for performing a principled reference analysis in the Bayesian normal-normal hierarchical model (NNHM) used for Bayesian meta-analysis. Focuses on the choice of the prior for the between-study (heterogeneity) standard deviation \tau. Implements the methodology proposed in Ott et al. (2021).

The posterior reference analysis applies the Hellinger distance to quantify the informativeness of an actual heterogeneity prior of interest by comparing the corresponding marginal posteriors (for different parameters in the NNHM) with posterior benchmarks. The prior reference analysis quantifies the informativeness of an actual heterogeneity prior given the data by computing its Hellinger distance to prior benchmarks.

The main posterior benchmark used is Jeffreys reference posterior induced by a minimally informative improper reference prior (denoted by J) for the heterogeneity. Two alternative proposals for additional posterior benchmarks are implemented. The first, simpler proposal is described in Ott et al. (2021) and uses a benchmark induced by an anti-conservative half-normal heterogeneity prior (denoted by HN0). This benchmark allows us to discriminate between anti-conservative and conservative heterogeneity priors with respect to the reference prior. The second, more involved proposal is introduced in the Supplementary Material of Ott et al. (2021) and uses up to four additional benchmarks induced by proper priors. These benchmarks allow us to discriminate between strongly anti-conservative, reference affine, and strongly conservative heterogeneity priors. All four benchmark priors belong to two closely related parametric families, the so-called "square-root generalized conventional" (SGC) and "inverse square-root generalized conventional" (SIGC) distributions, which are derived from prior distributions for variance components described in Berger & Deely (1988). Note that most of these prior benchmarks also depend on the data set considered.

Functions which implement this second proposal use 3 benchmarks for the posterior reference analysis (Jeffreys reference posterior and two additional benchmarks induced by a highly anti-conservative heterogeneity prior SGC(m_{inf}) and a highly conservative heterogeneity prior SIGC(M_{inf}), respectively) and 5 benchmarks for the prior reference analysis (Jeffreys reference prior and 4 proper priors) and have a corresponding suffix _3bm or _5bm. The corresponding functions without such a suffix implement the first proposal based on 2 heterogeneity benchmark priors (the half-normal and Jeffreys reference prior).

The main functions post_RA and post_RA_3bm perform the reference analysis at the posterior level based on a data frame as input. The functions fit_models_RA and fit_models_RA_5bm compute the benchmark heterogeneity priors and corresponding (marginal) posteriors for a given data frame. The more flexible functions post_RA_fits and pri_RA_fits perform the reference analysis at the posterior level and prior level based on the provided benchmark and actual model fits (of class bayesmeta), so that alternative benchmarks heterogeneity priors can also be used. Functions for plotting the densities of the heterogeneity priors and marginal posteriors for different parameters are also provided. The functions operate on data frames which are compatible with the bayesmeta R package on CRAN.

Details

Package: ra4bayesmeta

Type: Package

Title: Reference Analysis for Bayesian Meta-Analysis

Version: 1.0-8

Date: 2023-10-06

Author: Manuela Ott [aut, cre], Malgorzata Roos [aut]

Maintainer: Manuela Ott <manuela.c.ott@gmail.com>

Depends: bayesmeta

License: GPL (>=2)

Author(s)

Manuela Ott, Malgorzata Roos

Maintainer: Manuela Ott <manuela.c.ott@gmail.com>

References

Ott, M., Plummer, M., Roos, M. (2021). How vague is vague? How informative is informative? Reference analysis for Bayesian meta-analysis. Statistics in Medicine 40, 4505–4521. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/sim.9076")}

Ott, M., Plummer, M., Roos, M. (2021). Supplementary Material: How vague is vague? How informative is informative? Reference analysis for Bayesian meta-analysis. Statistics in Medicine. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/sim.9076")}

Berger, J. O., Deely, J. (1988). A Bayesian approach to ranking and selection of related means with alternatives to analysis-of-variance methodology. Journal of the American Statistical Association 83(402), 364–373.

Examples

# auricular acupuncture (AA) data set
data(aa)

# it takes several seconds to run each of the following functions
# posterior reference analysis
# for standard HN and HC heterogeneity priors
# using the HN0 and J benchmarks
post_RA(df=aa, tau.prior=
               list(function(t)dhalfnormal(t, scale=1),
                    function(t)dhalfcauchy(t, scale=1)))

# posterior reference analysis
# for standard HN and HC heterogeneity priors
# using 3 benchmarks (SGC(m_inf), J and SIGC(M_inf) priors)
post_RA_3bm(df=aa, tau.prior=
                   list(function(t)dhalfnormal(t, scale=1),
                        function(t)dhalfcauchy(t, scale=1)))


# plot the marginal posteriors for the effect mu
# using the HN0 and J benchmarks
plot_RA(df=aa, tau.prior=
               list(function(t)dhalfnormal(t, scale=1),
                    function(t)dhalfcauchy(t, scale=1)),
        type="post.mu", xlim=c(-1,1.5), ylim=c(0,2.5),
        legend=TRUE, legend.tau.prior=c("HN(1)", "HC(1)"))
         

ra4bayesmeta documentation built on Oct. 7, 2023, 1:07 a.m.