prior_accuracy: Sensitivity-based identification and classification of...

Description Usage Arguments Details Value References See Also Examples

View source: R/prior_accuracy.R

Description

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.

Usage

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)

Arguments

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 r.tau.prior. Postitive integer. Defaults to 10^6.

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 pri_par_epsilon_grid for details). Defaults to 0.00354.

Details

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.

Value

A list of the following 4 elements:

param

a list of the following two scale parameter values (non-negative real numbers):
HN: scale parameter of the adjusted HN prior
HC: scale parameter of the adjusted HC prior

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:
`S(tau)^HN`: sensitivity estimate for the HN prior
`S(tau)^HC`: sensitivity estimate for the HC prior

decision

a string specifiying the decision if the heterogeneity prior is anticonservative or conservative

References

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.

See Also

HN_accuracy, HC_accuracy, effective_rlmc, pri_par_adjust

Examples

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)

pa4bayesmeta documentation built on Aug. 1, 2021, 3 p.m.