Bayesian random-effects posterior for a pairwise meta-analysis
p(mu, tau | y) ∝ p(mu) * p(tau) * prod_(i=1)^k [N(y_i | mu, s_i^2 + tau^2)]
Maps each trial's effect estimate y_i and standard error s_i, together with priors for the mean effect mu and the between-study standard deviation tau, to a joint posterior distribution for mu and tau. The trial-level true effects are integrated out, so each estimate contributes a normal likelihood with variance s_i^2 + tau^2. The posterior of the mean effect, shrunken trial estimates and the predictive distribution of the effect in a new setting all follow from this joint posterior, and posterior draws can pass directly into a probabilistic cost-effectiveness model. Frequentist pooling of the same data, including the DerSimonian and Laird estimate, Cochran's Q, I-squared and the prediction interval, is covered under aggregate data meta-analysis (HE-FN-ADMA-001).
Conditional posterior mean of the mean effect given the between-study variance
m_mu = sum_(i=1)^k [y_i / (s_i^2 + tau2)] / sum_(i=1)^k [1 / (s_i^2 + tau2)]; sd_mu = sqrt(1 / sum_(i=1)^k [1 / (s_i^2 + tau2)])
Shrinkage factor and shrunken trial estimate in a Bayesian meta-analysis
B_i = s_i^2 / (s_i^2 + tau2); theta_post_i = B_i * mu + (1 - B_i) * y_i
Median and central 95% range of a log-normal heterogeneity prior
tau2_med = exp(m_LN); tau2_low = exp(m_LN - 1.96 * s_LN); tau2_high = exp(m_LN + 1.96 * s_LN)
Predictive draw of a new-setting effect and the resulting treated mortality risk
theta_new = mu + tau * z; o_0 = p_0 / (1 - p_0); p_1 = o_0 * exp(theta_new) / (1 + o_0 * exp(theta_new))