Roever 2020 - Normal-Normal Hierarchical Model and Likelihood

Summary

The NNHM has two unknowns: the effect and the heterogeneity . Study estimates are normal around study-specific with known standard errors , and the are exchangeable normal around with variance . Integrating out gives and the likelihood in Eq. (13); is the fixed-effect model.

Overview

The model is the same as the random-effects model of Viechtbauer 2010 - Fixed, Random and Mixed-Effects Models, with notation (standard error) instead of .

Main Content

Normal-normal hierarchical model (Eq. 1-2)

Data: estimates of with known standard errors , .

The (true study-specific effects) are exchangeable. Sampling error magnitude is .

Marginal form (Eq. 3)

Integrating out : . The unknowns are (primary interest) and (usually a nuisance parameter), though shrinkage estimates of can also be of interest. If , (fixed-effect model).

Likelihood (Eq. 13-14)

Scope: the model is applied to other data types after transformation to a real-valued scale, e.g. log odds ratios from binary data (Hedges and Olkin 1985; Hartung et al. 2008; Borenstein et al. 2009; Viechtbauer 2010; Higgins and Green 2011), see Viechtbauer 2010 - Effect Size Measures and escalc.

Examples

Marginal variance with and without heterogeneity

Take and : marginal SD of is versus under the fixed-effect model. The extra 30% spread is what a random-effects analysis propagates into the pooled SE.

import numpy as np
def nnhm_loglik(mu, tau, y, sigma):
    v = sigma**2 + tau**2
    return -0.5*len(y)*np.log(2*np.pi) - 0.5*np.sum(np.log(v) + (y-mu)**2/v)

Connections

  • Hierarchical Models: the NNHM is the simplest hierarchical model with known first-level variances (“eight schools” structure, Gelman et al. 2014 Sec. 5.5).
  • Marketing measurement: replace with each experiment’s lift estimate and standard error; is cross-experiment variability of true lift.

See Also