Description Usage Arguments Details Value Warning References See Also Examples

Plots the four proper benchmark heterogeneity priors proposed in the Supplementary Material of Ott et al. (2021)
and the corresponding marginal benchmark posteriors for different parameters in the
NNHM. Also displays the marginal Jeffreys reference posterior,
which is induced by an improper reference prior.
Displays the specified actual heterogeneity priors in `tau.prior`

and the corresponding marginal posteriors as well.

1 2 3 4 5 6 7 8 |

`df` |
data frame with one column "y" containing the (transformed) effect estimates for the individual studies and one column "sigma" containing the standard errors of these estimates. |

`tau.prior` |
list (maximum length 5) of prior specifications, which are |

`type` |
specifies if heterogeneity priors or marginal posterior densities for
a given parameter should be plotted.
Options are |

`improper.prior` |
vector of integers specifying the position of the improper priors in the list |

`show.sigma.i` |
logical. Specifies if the standard errors of the estimates for the individual studies (the entries of the column "sigma" in the data frame |

`xlim` |
a vector of two real numbers. Limits of the x-axis. (First number >= 0 for densities for tau.) |

`ylim` |
a vector of two real non-negative numbers. Limits of the y-axis. |

`m_J` |
parameter value |

`M_J` |
parameter value |

`upper.J` |
upper bound for the parameters |

`digits.J` |
specifies the desired precision of the parameter values |

`m_inf` |
parameter value |

`M_inf` |
parameter value |

`rlmc0` |
RLMC target value for the SGC( |

`rlmc1` |
RLMC target value for the SIGC( |

`legend` |
logical. Specifies if a legend should be added to the plot. Defaults to |

`pos.legend` |
a character string specifing the position of the legend in the plot.
Options are all the keywords accepted by
the |

`legend.tau.prior` |
a vector of character strings or expressions of the same length
as the list |

`xlab` |
x-axis label. If unspecified or set to NULL (the default), a default label specifying the paramter of interest is used. |

`bty` |
the type of box to be drawn around the legend. The allowed values are "o" (the default) and "n". |

`mu.mean` |
mean of the normal prior for the effect mu. |

`mu.sd` |
standard deviation of the normal prior for the effect mu. |

The five heterogeneity benchmark priors used are
introduced in the Supplementary Material of Ott et al. (2021, Sections 2.2.1, 2.5 and 2.6, see also Section 3.4 of Ott et al. (2021) for Jeffreys reference prior),
where they are denoted by
SGC(*m_{inf}*), SIGC(*M_J*), SGC(*m_J*), SIGC(*M_{inf}*)
and Jeffreys.
Note that the latter Jeffreys reference prior
is improper, but leads to a proper posterior if
there are at least two studies in the meta-analysis data set.

The default values for `mu.mean`

and `mu.sd`

are suitable for effects mu on the log odds (ratio) scale.

If you wish to adapt the colors, line types or line widths of the plotted densities,
we suggest to compute the models fits first by using the function `fit_models_RA`

and then to apply the more flexible function `plot_RA_fits`

operating on model fits of class `bayesmeta`

.

No return value, produces graphical output only.

This function may take several minutes to run if the parameter `m_J`

and/or `M_J`

is not specified,
especially if the desired precision is `digits.J=2`

or even `digits.J=3`

.

A warning message will be displayed if one of the parameters `m_inf`

, `M_J`

, `m_J`

or `M_inf`

has a value larger than 5*10^6, since this may lead to numerical problems
in the `bayesmeta`

function
used for computation of the marginal posteriors.

Ott, M., Plummer, M., Roos, M. Supplementary Material:
How vague is vague? How informative is informative? Reference analysis for
Bayesian meta-analysis. Revised for *Statistics in Medicine*. 2021.

Ott, M., Plummer, M., Roos, M. How vague is vague? How informative is
informative? Reference analysis for
Bayesian meta-analysis. Manuscript revised for *Statistics in Medicine*. 2021.

`fit_models_RA_5bm`

, `plot_RA_fits`

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ```
# for aurigular acupuncture (AA) data set with two
# actual half-normal and half-Cauchy heterogeneity priors
data(aa)
# prior densities
# warning: it takes ca. 8 min. to run this function
# (computation is much faster if m_J and M_J are specified)
plot_RA_5bm(df=aa, tau.prior=list(function(t)dhalfnormal(t, scale=1),
function(t)dhalfcauchy(t, scale=1)),
type="pri.tau", xlim=c(0,2), ylim=c(0,3), legend=TRUE,
legend.tau.prior=c("HN(1)", "HC(1)"))
# marginal posterior for the effect mu
# warning: it takes ca. 7 min. to run this function
plot_RA_5bm(df=aa, tau.prior=list(function(t)dhalfnormal(t, scale=1),
function(t)dhalfcauchy(t, scale=1)),
type="post.mu", xlim=c(-1.5,2), ylim=c(0,3), legend=TRUE,
legend.tau.prior=c("HN(1)", "HC(1)"))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.