# Multilevel Modeling

## 10. Modeling Contextual Effects

The random-effects and the fixed-effects estimates for each neighborhood, meanwhile, are related (Jones and Bullen, 1994). The neighborhood-specific random intercept (β0j) in a multilevel model is a weighted combination of the specific neighborhood coefficient in a fixed effects model (β*0j) and the overall multilevel intercept (β0), in the following way: β0j= wjβ*0j+(1– wj) β0, with the overall multilevel intercept being a weighted average of all the fixed intercepts: β0=(Σ wjβ*0j)/Σ wj.

Each neighborhood weight is the ratio of the true between-neighborhood parameter variance to the total variance, which additionally includes sampling variance resulting from observing a sample from the neighborhood. Consequently, the weights represent the reliability or precision of the fixed terms:

σ2uo
wj=   ————

υ2j + σ2uo

, where the random sampling variance of the fixed parameter is:

σ2e
υ2j=   ———

nj
,

with nj being the number of observations within each neighborhood.

When there are genuine differences between the neighborhoods and the sample sizes within a neighborhood are large, the sampling variance will be small in comparison to the total variance. As a result, the associated weight will be close to 1, with the fixed neighborhood effect being reliably estimated, and the random-effect neighborhood estimate close to the fixed-neighborhood effect. As the sampling variance increases, however, the weight will be less than 1 and the multilevel estimate will increasingly be influenced by the overall intercept based on pooling across neighborhoods. Shrinkage estimates allow the data to determine an appropriate compromise between specific estimates for different neighborhoods and the overall fixed estimate that pools information across places over the entire sample (Jones and Bullen, 1994).

Importantly, the fixed effects approach to modeling neighborhood differences using cross-sectional data is not a choice for a typical multilevel research question. This is especially true where there is an intrinsic interest in an exposure measured at the level of neighborhood such as the one specified in model (2); in such instances, a multilevel modeling approach is a necessity. This is because the dummy variables associated with the neighborhoods (measuring the fixed effects of each neighborhood) and the neighborhood exposure is perfectly confounded, and, as such, the latter is not identifiable (Fielding, 2004). Thus, the fixed effects specification to understand neighborhood differences is unsuitable for the sort of complex questions which multilevel modeling can address.

Flash is not available on mobile devices. Please view the Flash Description.

Fielding, A. (2004) The role of the Hausman test and whether higher level effects should be treated as random or fixed. Multilevel Modeling Newsletter 16(2): 3-9.
Jones, K., Bullen, N. (1994) Contextual models of urban house prices: A comparison of fixed- and random-coefficient models developed by expansion. Economic Geography 70: 252-272.