Description Usage Arguments Details Value References See Also Examples
View source: R/prior_accuracy.R
This function implements the algorithm for sensitivity-based identification and classification of inaccurate heterogeneity priors proposed in Ott et al. (2021). It can be applied to any proper heterogeneity prior which supports the assumption that small heterogeneity values are likely. This function classifies the specified heterogeneity prior as either anticonservative (puts more than half of its probability mass on too small heterogeneity values) or conservative (puts more than half of its probability mass on too large heterogeneity values). Assumes a Bayesian normal-normal hierarchical model.
1 2 3 | prior_accuracy(df, r.tau.prior,
MM = 10^6, mu.mean = 0, mu.sd = 4,
tail.prob = 0.5, grid.epsilon = 0.00354)
|
df |
data frame with one column "y" containing the effect estimates for the individual studies and a column "sigma" containing the standard errors of these estimates |
r.tau.prior |
function to generate random samples from the heterogeneity prior of interest |
MM |
size of the random sample from the prior specified in |
mu.mean |
mean of the normal prior for the effect mu. Defaults to 0. |
mu.sd |
standard deviation of the normal prior for the effect mu. Defaults to 4. |
tail.prob |
probability mass of the prior above the reference threshold. Defaults to 0.5, which corresponds to the 50%-RLMC-based adjustment of priors. |
grid.epsilon |
value for epsilon, a tuning parameter for epsilon-local sensitivity computation (see |
This algorithm proceeds as follows:
First, it computes the effective median RLMC for the prior specified in r.tau.prior
and the data set df
.
Second, it applies the 50%-RLMC-based adjustment to obtain a HN and a HC prior with the same median RLMC for the data set df
.
Third, it computes epsilon-local sensitivity estimates for these two adjusted HN and HC priors and the data set df
.
Finally, comparing the two sensitivity estimates leads to the decision:
If the sensitivity estimate for the HN prior is larger than the sensitivity estimate for the HC prior, then the specified prior is classfied as anticonservative.
If the sensitivity estimate for the HC prior is larger than the sensitivity estimate for the HN prior, then the specified prior is classfied as conservative.
The algorithm is described in Ott et al. (2021, Section 5), see the Supplementary Material of that manuscript (Section 4.6) for implementation details and an example.
If the heterogeneiy prior of interest is a HN or a HC prior, the algorithm described above can be simplified. In such a case, we recommend to use the HN_accuracy
or the HC_accuracy
function instead.
A list of the following 4 elements:
param |
a list of the following two scale parameter values (non-negative real numbers): |
mrlmc_prior |
the effective median RLMC for the specified prior |
S_tau |
a list of the following two epsilon-local sensitivity estimates with respect to the heterogeneity parameter tau: |
decision |
a string specifiying the decision if the heterogeneity prior is anticonservative or conservative |
Ott, M., Hunanyan, S., Held, L., Roos, M. Sensitivity-based identification of inaccurate heterogeneity priors in Bayesian meta-analysis. Submitted to Statistical Methods in Medical Research. 2021.
Ott, M., Hunanyan, S., Held, L., Roos, M. Supplementary Material: Sensitivity-based identification of inaccurate heterogeneity priors in Bayesian meta-analysis. Submitted to Statistical Methods in Medical Research. 2021.
HN_accuracy
,
HC_accuracy
,
effective_rlmc
,
pri_par_adjust
1 2 3 4 5 6 7 8 | # load the steriod-resistant rejection (SRR) data analyzed in Friede et al. (2017)
data(srr)
# sensitivity-based accuracy estimation & classification for
# the uniform heterogeneity prior on [0, 4] and the SRR data
prior_accuracy(df = srr,
r.tau.prior = function(t) runif(t, min = 0, max = 4),
mu.mean = 0, mu.sd = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.