4 Methods for Spatially Aggregated Data

4.2 Ecological bias

When regression models are fitted to area-level data, the effect of covariates on the fitted means μi may or may not be the same as the corresponding effects on individual risk. Differences between covariate effects at individual and at area levels lead to what is usually called ecological bias.

4.2.1 Ecological bias as model mis-specification

  • Suppose that we wish to describe the relationship between an outcome variable Y and an exposure x;

  • imagine that we collect data (xij,Yij), where i denotes groups (areas), and j denotes individuals within groups.

  • Figure LABEL:fig:ecological1 shows the relationship between x and Y using synthetic data from individuals in five groups:

Unnumbered Figure: Link

Unnumbered Figure: Link

Unnumbered Figure: Link

Caption: Showing the potential relationships between x and Y, that might arise depending on the choice of model. In each plot, the red dots are the data points, (xij,Yij). Broadly speaking, these show a strong negative trend, but within this negative trend, there are 5 groups of individuals and within each group, the trend between x and Y is slightly positive. In the top plot, only the individual level data are shown. In the bottom left plot, in addition to the individual level data, the large blue dots are the group-level averages (x¯i,Y¯i), where x¯i is the mean of the xs in the ith group and Y¯i is the mean of the Ys in the ith group. In the bottom right plot, the group level averages are now shown as hollow blue circles and two regression lines have been added. The dashed blue line corresponds to a regression on the group level averages (model 1 in the text), whereas the five solid red lines are from a regression model that respects both the group and individual-level structures in the data (model 3 in the text). Model 1 would lead one to conclude that the relationship between Y and x is strongly negative, whereas Model 3 captures the positive trend between Y and X within each group.

Consider three possible models for the above synthetic data:

  1. 1.

    Common individual-level regressions

    Yij =α+βxij+Zij ZijiidN(0,σ2)
    Y¯i =α+βx¯i+Z¯i Z¯iiidN(0,σ2/ni)

    This model is not correct.

  2. 2.

    Separate individual-level regressions

    Yij =αi+βxij+Zij ZijiidN(0,σ2)
    Y¯i =αi+βx¯i+Z¯i Z¯iiidN(0,σ2/ni)

    This model is correct, but not identifiable from group-level data (we need individual-level data for each group to estimate the group’s slope).

  3. 3.

    An additional group-level covariate

    Yij =αi+βxij+Zij ZijiidN(0,σ2)
    αi =α+γui+Zi* Zi*iidN(0,τ2)
    1. (a)

      if uix¯i, then

      Y¯i=α+βx¯i+γui+(Zi*+Z¯i)

      This model is correct, and is identifiable if ui is known, and Corr(ui,x¯i)<1

    2. (b)

      if ui=x¯i, then

      Y¯i=α+(β+γ)x¯i+(Zi*+Z¯i)

      This model is implicitly assumed in an ecological regression of Y¯i on x¯i hence the estimand in ecological regression is β+γ, not β.

Example 4.1.

An extremely widely-cited an early historical example of the effects of ecological bias outside environmental epidemiology relates to a study carried out by the French sociologist Émile Durkheim. Durkheim collected data on suicide rates in Prussian provinces in the 1890s, and compared these to the proportion of the population that was Protestant. The graph below shows the relationship for four typical provinces, and indicates an apparently strong positive relationship between the two variables.

The ecological bias here becomes apparent when examining suicide rates from individual religious groups (Protestants, Catholics, Jews, etc). The suicide rates of the non-Protestants was highest in the provinces that contained the most Protestants, and it is this that appears to explain the ecological effect shown in the figure. For more details, see Morgenstern (1995).

Figure 4.2: Link, Caption: Plot of proportion protestant against suicide rate in Prussian provinces in the 1890s. The dots are the actual data and the solid line is a regression line on these ecological-level variables.

Ecological bias is closely related to the phenomenon known as Simpson’s paradox, or Yule’s paradox. Wakefield (2004) provides a full discussion of ecological inference and related topics.

4.2.2 Ecological bias for spatial count data

Figure 4.3: Link, Caption: A repeat of Figure 4.3, showing a realisation of a homogeneous Poisson process (black dots) superimposed onto a tessellation of the unit square (solid lines). Ecological bias can also occur with spatial count data: in particular where data originate at the individual, or indeed sub-regional level, but we only observe information at the aggregated level.

Let Ai be small spatial regions Yi be counts in Ai. Let {z(x):xiAi}= be a spatially varying risk factor.

  1. 1.

    Individual-level model

    Cases form an inhomogeneous Poisson process,

    λ(x)=λ0(x)exp{βz(x)}
  2. 2.

    Area-level model

    Yi Poisson(μi)
    μi = xAiλ0(x)exp{βz(x)}dx

    It is common practice to assume a model of the form

    μi=λ¯0iexp(βz¯i)

    where λ¯0i and z¯i are the averages over the small area Ai of λ0(x) and z(x), respectively. Note that this is strictly incorrect, except under rather special conditions.

For problems of this kind, the suggested strategy is to:

  • specify the model at the individual level

  • derive the resulting joint probability distribution for area-level data

  • check that parameters of interest are identifiable from area-level data

  • make the required inferences

See, for example, Prentice and Sheppard (1995) and Sheppard and Prentice (1995). Li et al. (2012) and Taylor et al. (2013) discuss a data-augmentation scheme (under modelling assumptions) to enable an individual-level model to be fitted to aggregated data under the slightly more complex scenario that λ(x) is stochastic.