You are on page 1of 8

American Journal of Epidemiology Vol. 161, No.

1
Copyright © 2005 by the Johns Hopkins Bloomberg School of Public Health Printed in U.S.A.
All rights reserved DOI: 10.1093/aje/kwi017

Appropriate Assessment of Neighborhood Effects on Individual Health: Integrating


Random and Fixed Effects in Multilevel Logistic Regression

Klaus Larsen1 and Juan Merlo2

1 Clinical Research Unit, Hvidovre University Hospital, University of Copenhagen, Hvidovre, Denmark.
2 Department of Community Medicine, Malmö University Hospital, Lund University, Malmö, Sweden.

Downloaded from https://academic.oup.com/aje/article/161/1/81/73690 by guest on 26 March 2024


Received for publication October 3, 2003; accepted for publication August 30, 2004.

The logistic regression model is frequently used in epidemiologic studies, yielding odds ratio or relative risk
interpretations. Inspired by the theory of linear normal models, the logistic regression model has been extended
to allow for correlated responses by introducing random effects. However, the model does not inherit the
interpretational features of the normal model. In this paper, the authors argue that the existing measures are
unsatisfactory (and some of them are even improper) when quantifying results from multilevel logistic regression
analyses. The authors suggest a measure of heterogeneity, the median odds ratio, that quantifies cluster
heterogeneity and facilitates a direct comparison between covariate effects and the magnitude of heterogeneity
in terms of well-known odds ratios. Quantifying cluster-level covariates in a meaningful way is a challenge in
multilevel logistic regression. For this purpose, the authors propose an odds ratio measure, the interval odds ratio,
that takes these difficulties into account. The authors demonstrate the two measures by investigating
heterogeneity between neighborhoods and effects of neighborhood-level covariates in two examples—public
physician visits and ischemic heart disease hospitalizations—using 1999 data on 11,312 men aged 45–85 years
in Malmö, Sweden.

data interpretation, statistical; epidemiologic methods; hierarchical model; logistic models; odds ratio; residence
characteristics

Abbreviations: IOR, interval odds ratio; MOR, median odds ratio.

A growing number of epidemiologic studies apply multi- The partition of variance at different levels (e.g., neighbor-
level regression analysis for the investigation of associations hood and individual) is the sine qua non of multilevel regres-
between area of residence (e.g., neighborhood) and indi- sion analysis, and its consideration is relevant for both
vidual health (1, 2). A majority of studies have focused on statistical reasons (improved estimation) and substantive
traditional measures of association such as fixed effects epidemiologic reasons (quantification of the importance of
using regression models for the relation between neighbor- the neighborhoods for understanding individual health) (5).
hood (or cluster) characteristics and individual health. Other However, contrary to normally distributed continuous vari-
multilevel regression analysis approaches have concentrated ables, components of variance are tricky to investigate when
on determining the components of health variation (3). On it comes to dichotomous response variables. Forcing clas-
some occasions, difficult questions arise, such as “Is it sical interpretative schemes wastes information and may be
worthwhile to study the association between neighborhood inappropriate. New measures are needed in order to quantify
characteristics and health when the neighborhood variation effects and ultimately provide a better understanding of the
is very small?” (4). Neither pure fixed-effects regression data.
analysis nor calculation of intraclass correlations can In this paper, our aim is to highlight two measures previ-
provide sufficient insight to answer such questions in a satis- ously described (6): the median odds ratio (MOR) and the
factory way. interval odds ratio (IOR). These measures facilitate the inte-

Correspondence to Dr. Klaus Larsen, Clinical Research Unit, Section 136, Hvidovre University Hospital, Kettegård Allé 30, DK-2650 Hvidovre,
Denmark (e-mail: klaus.larsen@hh.hosp.dk).

81 Am J Epidemiol 2005;161:81–88
82 Larsen and Merlo

gration and presentation of both fixed and random effects in The model
logistic regression.
Consider a population of N individuals. Each individual
has a vector of covariates, x, and each individual belongs to
MOTIVATION FOR NEW MEASURES OF EFFECT SIZE IN one of K clusters. The parameters corresponding to the cova-
TWO-LEVEL MODELS WITH DICHOTOMOUS riates are in the vector β. The K mutually independent cluster
RESPONSES variables, u1, u2, ..., uK, are not to be estimated, since they are
The multivariate normal distribution is an attractive frame- not of interest per se; rather, it is the variation between clus-
work for statistical modeling, when data on the response ters that needs be quantified. Therefore, a normal distribu-
variable are continuous and normal. However, when the tion is assumed for the u’s, and parameters characterizing
response variable is dichotomous, the distribution is incor- this distribution can then be used to characterize the hetero-
rect, and therefore conclusions based on the normal distribu- geneity induced by the random effects.
tion are likely to be flawed. The response variable, Y, is a dichotomous variable. That
When formulating a two-level model, it is common to is, for each individual, it is observed whether Y = 0 or 1. The
assume normality for the cluster-level (level 2) variation and model has two levels.

Downloaded from https://academic.oup.com/aje/article/161/1/81/73690 by guest on 26 March 2024


to assume independence of units within-cluster (level 1) Level 1: For a person with covariate vector x, corresponding
conditional on the cluster variable, thus generating a model to the kth cluster, the probability of observing Y = 1 is
in which individuals are marginally correlated within clus-
exp ( η ( x ,u k ) )
ters. In the multivariate normal case, the interpretation of P ( Y = 1 u k ;x ) = -----------------------------------------
-.
both fixed effects and random effects (individual residual 1 + exp ( η ( x ,u k ) )
error and cluster variation) is simple. This is not true in the
case of dichotomous response variables, because of the Level 2: For that individual, the second-level equation is
nonlinear relation between the covariates and the response
variable (typically a logit relation). η(x, uk) = βx + uk,
Choosing a logistic regression model leads to the choice
between two different odds ratio interpretations of the fixed- where uk ∼ N(0, σ2). The covariate vector, x, contains indi-
effects parameters, the subject-specific interpretation and the vidual-level (level 1) and cluster-level (level 2) covariates.
population-averaged interpretation (7, 8). Taking a popula- Although there is no difference in terms of formulating the
tion-averaged approach, heterogeneity is considered a model, there are differences when interpreting the effects of
nuisance, whereas the subject-specific approach opens up variables varying within clusters and cluster-level variables.
the possibility of quantification of heterogeneity based on For variables varying within a cluster, the usual odds ratio
the two-level model (6). interpretations apply for comparisons of persons belonging
Quantifying the variance component is a different matter. to the same cluster; for example, a gender effect may be
Usually, researchers either calculate a so-called intraclass interpreted as an odds ratio between a woman and a man
correlation coefficient based on an estimate of the variance belonging to the same cluster and with the same covariates,
components and the residual variance or report the variance except for gender.
component, neither of which is very useful. Many different For variables varying on the cluster level, the quantifica-
measures of intraclass correlation have been suggested (9). tion is more difficult; the usual odds ratio interpretation is
Nevertheless, intraclass correlations have serious interpreta- incorrect, because it is necessary to compare persons with
tional drawbacks (10) for binary responses. First, the intra- different random effects, since the variable of interest does
class correlation may be interpreted as the proportion of the not vary between individuals within-cluster. A measure for
total variation attributable to variation between clusters, or this situation is described below in the section “The IOR.”
as correlation between persons within the same cluster. That
It is of interest to quantify the clustering as something
is, the intraclass correlation does not convey information
other than variation on the underlying linear scale, because
regarding variation between clusters. Therefore, it is not a
this is difficult to interpret and relate to the fixed effects,
very useful measure when determining whether or not clus-
which are quantified in terms of odds ratios. Therefore, it
tering is an important factor. Second, the intraclass correla-
tion is not comparable with the fixed effects, which have would be useful to have an odds ratio interpretation of the
odds ratio interpretations. This is unfortunate, because cluster variation as well. A measure is described below.
random effects are not very different from fixed effects in
nature; random effects are fixed effects with an additional The MOR
distributional assumption. Therefore, it seems natural to
quantify variation between the random effects using odds The MOR quantifies the variation between clusters (the
ratios. Alternatively, one may use the variance component second-level variation) by comparing two persons from two
itself, but it is quite difficult to interpret, since it is on the log randomly chosen, different clusters. Consider two persons
odds ratio scale. with the same covariates, chosen randomly from two different
In this paper, we unify interpretations of fixed and random clusters. The MOR is the median odds ratio between the
effects in a subject-specific approach, explaining the use of person of higher propensity and the person of lower propensity.
the MOR and IOR measures in the case of a two-level The MOR is very easy to calculate, because it is a simple
logistic regression model. function of the cluster variance, σ2:

Am J Epidemiol 2005;161:81–88
Quantification of Heterogeneity due to Clustering 83

2 –1 borhood environment, because individuals move between


MOR = exp ( 2 × σ × Φ ( 0.75 ) ), different areas during the course of their lives. Therefore, in
where Φ(·) is the cumulative distribution function of the cross-sectional analysis of neighborhood effects on health,
normal distribution with mean 0 and variance 1, Φ–1(0.75) is one should expect that atherosclerotic disorders with a long
the 75th percentile, and exp(·) is the exponential function. A natural history (e.g., ischemic heart disease) are influenced
theoretical derivation of the formula is provided in the only slightly by the actual neighborhood territorial limits.
Appendix. Following the same reasoning, behavior-related outcomes
(e.g., the choice of a specific kind of physician) may be
The measure is always greater than or equal to 1. If the
much more susceptible to neighborhood influences.
MOR is 1, there is no variation between clusters (no second-
Multilevel analysis has provided evidence that the socio-
level variation). If there is considerable between-cluster
economic characteristics of the neighborhood environment
variation, the MOR will be large. The measure is directly
affect individual risk of ischemic heart disease (12). However,
comparable with fixed-effects odds ratios.
neighborhood variation seems to be low (13).
In Sweden, cost is not a specific determinant of people’s
The IOR choice of a private versus public health-care practitioner, since

Downloaded from https://academic.oup.com/aje/article/161/1/81/73690 by guest on 26 March 2024


the county councils support both economically. However,
The IOR is a fixed-effects measure for quantification of private physicians are outside of the public health-care system
the effect of cluster-level variables. Consider two persons and therefore are less susceptible to health-care strategies
with different cluster-level covariates, x1 and x2. The IOR is directed by the county councils. Preferring a public practi-
an interval for odds ratios between two persons with cova- tioner versus a private practitioner might suggest dysfunction
riate patterns x1 and x2, covering the middle 80 percent of the in some parts of the public health-care system, but it might
odds ratios. also be explained by individual preferences, demands, and
The IOR is only slightly more difficult to calculate than expectations related to socioeconomic position. The greater
the MOR. The lower and upper bounds of the interval are confidentiality of medical records in the private sector is
2 –1 another factor that could explain individual preference. More-
IOR lower = exp ( β × ( x 1 – x 2 ) + 2 × σ × Φ ( 0.10 ) ) over, area of residence might influence individual decisions
over and above individual characteristics.
and Using a multilevel approach, we investigated the proba-
2 –1 bility of being hospitalized for ischemic heart disease and the
IOR upper = exp ( β × ( x 1 – x 2 ) + 2 × σ × Φ ( 0.90 ) ), probability of visiting a public practitioner versus a private
practitioner among Swedish men. We give two examples,
where Φ–1(0.10) = –1.2816 and Φ–1(0.90) = 1.2816 are the followed by some comments on issues that have not already
10th and 90th percentiles of the normal distribution with been covered.
mean 0 and variance 1. A theoretical derivation of the
formula is provided in the Appendix.
Study population and assessment of variables
The interval is narrow if the between-cluster variation is
small, and it is wide if the between-cluster variation is large. The study population consisted of 11,312 men aged 45–85
If the interval contains 1, the cluster variability is large in years residing in 98 of the 110 neighborhoods in the city of
comparison with the effect of the cluster-level variable. If the Malmö, Sweden. All of the men had visited a physician
interval does not contain 1, the effect of the cluster-level during the year 1999. Information was obtained from the
variable is large in comparison with the unexplained Register on Health Care Utilization in Skåne, Sweden (14).
between-cluster variation. For the analysis, the variable “neighborhood” was used as
According to the model, the odds ratios can take any value a cluster (level 2) variable. Two individual-level (level 1)
between zero and infinity. However, to put meaning into the explanatory variables were considered: “age,” which was a
IOR, it is natural to report an interval that is likely to contain four-category variable with the categories 65–69, 70–74,
the odds ratio when randomly choosing two persons with 75–79, and 80–85 years, and “education,” which was a
two specific sets of covariates. Reporting an 80 percent dichotomous indicator of having 9 or fewer years of
interval has been suggested (6), and that is reasonable, schooling. A cluster-level (level 2) explanatory variable,
because it covers a large fraction of the odds ratios. Note that “neighborhood education,” was also used in the analyses.
the IOR is not a confidence interval. This variable was a dichotomous indicator of the neighbor-
hood’s educational level being below the median for all
EXAMPLES neighborhoods. In example 1, the response variable was an
indicator of whether a person had been hospitalized for
It is known that different geographic boundaries may have ischemic heart disease (coded as 1) or not (coded as 0).
different effects on the same response, a problem that in Ischemic heart disease was defined by hospital discharge
medical geography is known as the “modifiable area unit diagnosis in 1999. The relevant codes according to the Inter-
problem” (11). Analogously, the same neighborhood defini- national Classification of Diseases, Tenth Revision, are I20
tion may affect different individual outcomes differently. (angina pectoris), I21 (acute myocardial infarction), I22
Moreover, one also needs to consider a temporal or longitu- (subsequent myocardial infarction), and I50 (heart failure).
dinal perspective to define individual exposure to the neigh- In example 2, the response variable was whether a person

Am J Epidemiol 2005;161:81–88
84 Larsen and Merlo

TABLE 1. Estimates and standard errors from analyses of hospitalization for ischemic heart disease (models 1 and 2)
and visiting a public physician (models 3 and 4), Malmö, Sweden, 1999

Hospitalization Visits to a public physician

Model 1 Model 2 Model 3 Model 4

Estimate SE* Estimate SE Estimate SE Estimate SE

Fixed-effects variables ( β̂ )
Age group (years)
70–74 vs. 65–69 0.458 0.132 0.458 0.132 0.116 0.066 0.116 0.066
75–79 vs. 65–69 0.498 0.137 0.506 0.137 0.262 0.073 0.264 0.074
80–85 vs. 65–69 0.733 0.142 0.750 0.142 0.437 0.083 0.442 0.083
Education (low vs. high) 0.223 0.116 0.200 0.117 0.243 0.062 0.239 0.062
Neighborhood education

Downloaded from https://academic.oup.com/aje/article/161/1/81/73690 by guest on 26 March 2024


(low vs. high) —† 0.236 0.088 — 1.018 0.266
2
Random effects ( σ̂ )
Neighborhood 0.028 0.025 0.009 0.020 1.815 0.278 1.593 0.246

* SE, standard error.


† Not included.

had visited a public physician (coded as 1) or not (coded as tion versus a high level were 1.25 in model 1 and 1.22 in
0). We restricted our analysis to persons who had used the model 2. These odds ratios are conditional on age and
health-care system and visited a general practitioner at least neighborhood.
once during the year 1999. Note that the above odds ratios are correct only for
Parameters in the random-effects model were estimated comparisons of persons belonging to the same cluster. When
using restricted iterative generalized least squares. The comparing persons from different clusters, it is necessary to
MLwiN software package (15), version 1.1, was used to calculate an IOR or leave the subject-specific interpretation
perform the analyses. Extrabinomial variation was explored and consider population-averaged odds ratios. The popula-
systematically in all of the models, and there was no indica- tion-averaged odds ratio is the odds ratio between two
tion of either under- or overdispersion. persons from different clusters. In models 1 and 2, the esti-
Population-averaged parameters were calculated on the mates on the linear predictor scale are only shrunk by factors
basis of the approximate formula (7) of
2 2
2 2 2
β̃ = β̂ ⁄ 1 + ( 16 × 3 ⁄ ( 15 × π ) ) × σˆ , 1 ⁄ 1 + ( 16 × 3 ⁄ ( 15 × π ) ) × 0.028 = 0.995

and
where β̃ is the population-averaged parameter and β̂ is the
2
subject-specific parameter. The cluster variance is σ̂ . 2 2
1 ⁄ 1 + ( 16 × 3 ⁄ ( 15 × π ) ) × 0.009 = 0.998,

Example 1: hospitalization for ischemic heart disease respectively. This indicates an apparently small amount of
heterogeneity of the clusters. Thus, in effect, the attenuation
In example 1, two models are considered. In model 1, age is hardly visible in this analysis.
and individual education were included together with a In model 1, the cluster heterogeneity is interpreted in the
random neighborhood effect. Model 2 was an extension of following way. Consider two randomly chosen persons with
model 1 that also included the cluster-level covariate neigh- the same covariates from two different clusters (e.g., two
borhood education. more-educated persons aged 65–69 years) and conduct the
In both analyses, it appeared that older people were more hypothetical experiment of calculating the odds ratio for the
likely to be hospitalized than younger people and that less- person with the higher propensity to be hospitalized versus
educated persons were more likely to be hospitalized than the person with the lower propensity. Repeating this compar-
the more educated. The estimates shown in table 1 were very ison of two randomly chosen persons will lead to a series of
similar in the two models, but there were some differences odds ratios. This distribution is estimated when estimating
(discussed in detail below). The parameter estimates were the parameters, and it is shown in figure 1 (on the log scale).
transformed into odds ratios, which are shown in table 2. The median of these odds ratios between the person with a
The individual-specific fixed effects are conditional on the higher propensity and the person with a lower propensity is
random effects. That is, they may be interpreted as odds estimated to be 1.17 in model 1. This is a low odds ratio, and
ratios for within-cluster comparisons. For the individual it suggests that the clustering effect is small even without
education variable, the odds ratios for a low level of educa- inclusion of any cluster-level covariates. When neighbor-

Am J Epidemiol 2005;161:81–88
Quantification of Heterogeneity due to Clustering 85

TABLE 2. Odds ratios for being hospitalized for ischemic heart disease (models 1 and 2) and visiting a public
physician (models 3 and 4), Malmö, Sweden, 1999

Hospitalization Visits to a public physician

Model 1 Model 2 Model 3 Model 4


Fixed-effects variables, varying within cluster Odds ratio
Age group (years)
70–74 vs. 65–69 1.58 1.58 1.12 1.12
75–79 vs. 65–69 1.65 1.66 1.30 1.30
80–85 vs. 65–69 2.08 2.12 1.55 1.56
Education (low vs. high) 1.25 1.22 1.28 1.27
Random effects Median odds ratio
Neighborhood 1.17 1.09 3.61 3.33

Downloaded from https://academic.oup.com/aje/article/161/1/81/73690 by guest on 26 March 2024


Fixed-effects variables, constant within Interval odds ratio
cluster
Neighborhood education (low vs. high) —* [1.07; 1.50] — [0.28; 27.3]

* Not included.

hood education is included (model 2), the unexplained [1.07; 1.50]. This means that when randomly choosing two
cluster heterogeneity (comparing persons from neighbor- persons with identical individual covariates (e.g., 80- to 85-
hoods of the same kind—for example, both neighborhoods year-olds with a low individual level of education) from a
with a high level of education) decreases, yielding an MOR low-education neighborhood and a high-education neighbor-
of 1.09, which is a very low odds ratio. Thus, there is very hood, the odds ratio between the two lies within the interval
little variation between neighborhoods in the propensity for in 80 percent of the cases. The estimated distribution of the
hospitalization for ischemic heart disease. odds ratios is shown in figure 2 (on the log scale). Two
Although the cluster heterogeneity is small in both models, things are worth noticing regarding this interval. First, the
it is interesting that neighborhood education accounts for interval does not contain 1. This suggests that the effect of
quite a large part of the variation between clusters. This can neighborhood education is large relative to the cluster effect,
best be seen from the IOR in the following way. The IOR is because apparently there is little chance that the person from

FIGURE 2. Model 2: density of the distribution of log odds ratios


FIGURE 1. Model 1: density of the distribution of log odds ratios between a person from a less-educated neighborhood and a person
between a person with a higher propensity for being hospitalized for from a more-educated neighborhood, when the persons belong to the
ischemic heart disease and someone with a lower propensity. The same age group and have the same personal educational level. The
median value in the distribution of the log odds ratios is 0.16. MOR, 10th and 90th percentiles in the distribution of the log odds ratios are
median odds ratio. 0.07 and 0.41, respectively. IOR, interval odds ratio.

Am J Epidemiol 2005;161:81–88
86 Larsen and Merlo

the less-educated neighborhood has a lower propensity for reflected in the IOR, which is very broad: [0.28; 27.3]. The
hospitalization than the person from the more-educated interpretation is that if one is randomly selecting two
neighborhood. Second, the interval appears to be relatively persons, one from a low-education neighborhood and one
narrow, which suggests that there is little cluster heteroge- from a high-education neighborhood, and comparing their
neity (as does the MOR). Therefore, a fairly large proportion odds of having visited a public physician, the middle 80
of the (small) variation between neighborhoods in the percent of the odds ratios will lie within this interval. The
propensity to be hospitalized may be explained by neighbor- interval contains 1, which implies that neighborhood educa-
hood educational level. tion does not account for a substantial amount of the neigh-
A population-averaged approach cannot convey the rami- borhood heterogeneity. In addition, the interval is quite
fications of the effect of neighborhood education on the broad, reflecting a large amount of unexplained variation
propensity to be hospitalized in an equally satisfactory way. between neighborhoods in the propensity to visit a public
The results of such an analysis would be quantified in terms physician. Other cluster-level variables are needed to explain
of a (slightly attenuated) odds ratio of the cluster heterogeneity.
A population-averaged approach might lead to a different
2 2
exp ( 0.236 ⁄ 1 + ( 16 × 3 ⁄ ( 15 × π ) ) × 0.009 ) = 1.27 conclusion. The population-averaged effect of neighborhood

Downloaded from https://academic.oup.com/aje/article/161/1/81/73690 by guest on 26 March 2024


education is
and some measure of within-cluster association. Contrary to 2 2
the MOR and the IOR, these two measures do not convey exp ( 1.018 ⁄ 1 + ( 16 × 3 ⁄ ( 15 × π ) ) × 1.593 ) = 2.26.
much information regarding the effect of clustering on the
likelihood of being hospitalized. This is by far the most important of the fixed effects, and it
suggests that neighborhood education is indeed an impor-
tant variable when analyzing the propensity to visit a public
Example 2: visits to a public or private physician physician. However, this is not completely in agreement
In example 2, two models are considered. In model 3, age with the previous interpretations based on the random-
and individual education were included with a random effects approach. The reason for this apparent discrepancy
neighborhood effect. Model 4 was an extension of model 3 is the large unexplained cluster heterogeneity, which in the
that also included the cluster-level covariate neighborhood population-averaged approach is only considered a
education. nuisance.
The parameter estimates are shown in table 1, and the odds
ratios are shown in table 2. The odds ratios for individual Other issues regarding the MOR and IOR
education were 1.28 and 1.27 in models 3 and 4, respec-
tively; this suggests a higher propensity to visit a public In a previous study (6), the IOR for being prescribed
physician for the less educated, conditional on age and morphine when calling two different doctors and giving
neighborhood. “back pain” versus “other” as the reason for the call was
However, the results regarding clustering are quite [2.08; 22.9]. This is an example of a large cluster effect
different from those in example 1, and this implies substan- (variation between physicians) along with a strong fixed
tial differences between the subject-specific and population- effect (cause for the call).
averaged estimates in this example. In models 3 and 4, the Another, perhaps less interesting situation is also
linear predictor parameters are attenuated by factors of possible—the situation where there is relatively little varia-
tion between clusters and there is little or no effect of the
2 2 cluster-level covariate. Although this may be a common situ-
1 ⁄ 1 + ( 16 × 3 ⁄ ( 15 × π ) ) × 1.815 = 0.784
ation, it is also the one that is most likely to be overlooked
and because of type II error.
It is also possible to include continuous cluster-level cova-
2 2
1 ⁄ 1 + ( 16 × 3 ⁄ ( 15 × π ) ) × 1.593 = 0.803, riates using the formulas given above in the section “The
IOR,” and the interpretation is straightforward.
respectively. This yields population-averaged effects of 1.21
for individual education in both models. These effects are for DISCUSSION
comparisons of persons of the same age belonging to
different clusters. In this paper, we discuss interpretational aspects of the
In model 3, for two persons with the same individual-level multilevel logistic regression model. Two measures, the
covariates, the MOR between the person living in the neigh- MOR and the IOR, are proposed and applied to data
borhood with the higher propensity to visit a public physi- concerning neighborhood effects on people’s propensity to
cian and the person living in the neighborhood with the visit public physicians and their likelihood of being hospital-
lower propensity is 3.61. This is a high odds ratio, suggesting ized because of ischemic heart disease.
that the heterogeneity is substantial. Including neighborhood Regarding interpretation of fixed effects, the choice
education as a covariate reduces the unexplained heteroge- between generalized estimating equations and the random-
neity between neighborhoods to an MOR of 3.33, which is effects model is the choice between population-averaged and
still high. Thus, the propensity to visit a public physician subject-specific interpretations. Which one to choose
varies a great deal between neighborhoods. This is also depends entirely on the substantive research question. In

Am J Epidemiol 2005;161:81–88
Quantification of Heterogeneity due to Clustering 87

examples 1 and 2, the effect of individual education is condi- The authors express their gratitude to Prof. Niels Keiding
tional on neighborhood. A subject-specific approach is of the Department of Biostatistics, University of Copen-
proper, because it facilitates measures of effect on the indi- hagen, for his comments on an early draft of this paper. The
vidual level: What is the direct effect of having a high indi- authors also thank Dr. Basile Chaix of the Research Team on
vidual level of education versus a low level for a person the Social Determinants of Health and Health Care, French
under his/her specific conditions? In this sense, the subject- National Institute of Health and Medical Research, for his
specific parameters are more “clean” measures of the effect comments on the final manuscript.
of individual education, because they are not attenuated by
unmeasured heterogeneity.
A general argument favoring the random-effects model
REFERENCES
is the possibility of quantification of heterogeneity in an
intuitively attractive way. As is shown in the four models 1. Diez-Roux AV. Multilevel analysis in public health research.
in the examples, the heterogeneity may be quantified by Annu Rev Public Health 2000;21:171–92.
characteristics from the distribution of the odds ratios 2. Kawachi I, Berkman LF. Neighborhoods and health. New

Downloaded from https://academic.oup.com/aje/article/161/1/81/73690 by guest on 26 March 2024


between pairs of randomly chosen persons from different York, NY: Oxford University Press, 2003.
neighborhoods. This provides a measure of heterogeneity 3. Merlo J. Multilevel analytical approaches in social epidemi-
on a scale that is familiar to researchers who have worked ology: measures of health variation compared with tradi-
tional measures of association. (Editorial). J Epidemiol
with the logistic regression model, namely odds ratios.
Community Health 2003;57:550–2.
The usual odds ratio interpretations (conditioning on all 4. Oakes JM. The (mis)estimation of neighborhood effects:
other covariates and random effects) are proper for covari- causal inference for a practicable social epidemiology. Soc
ates that vary within-cluster, whereas they are improper for Sci Med 2004;58:1929–52.
cluster-level covariates, because it is impossible to make 5. Rodriguez G, Goldman N. An assessment of estimation pro-
comparisons within-cluster. That is, all comparisons must be cedures for multilevel models with binary responses. J R Stat
made between persons belonging to two different clusters, Soc A 1995;158:73–90.
and thus the odds ratio is no longer a fixed quantity but a 6. Larsen K, Petersen JH, Budtz-Jørgensen E, et al. Interpreting
random variable. In this way, the heterogeneity becomes parameters in the logistic regression model with random
effects. Biometrics 2000;56:909–14.
relevant when quantifying the effect of a cluster-level
7. Zeger SL, Liang K-Y, Albert PS. Models for longitudinal
covariate. The IOR incorporates both the fixed effect and the
data: a generalized estimation equation approach. Biometrics
cluster heterogeneity in an interval, allowing for a more 1988;44:1049–60.
detailed description of the covariate effect. 8. Zeger SL, Liang K-Y. Longitudinal data analysis for discrete
The MOR and the IOR have been applied in a two-level and continuous outcomes. Biometrics 1986;42:121–30.
model for the quantification of between-rater variability in 9. Ridout MS, Demétrio CG, Firth D. Estimating intraclass cor-
a study of mammographic screening (16). Other studies relation for binary data. Biometrics 1999;55:137–48.
have used the pairwise odds ratio (17, 18), which is similar 10. Goldstein H, Browne W, Rasbash J. Partitioning variation in
to the MOR and IOR in the sense that it is also based on multilevel models. Understanding Stat 2002;1:223–32.
comparisons between pairs of individuals. However, where 11. Ratcliffe JH, McCullagh MJ. Hotbeds of crime and the search
the MOR and IOR quantify between-cluster heterogeneity, for spatial accuracy. J Geograph Systems 1999;1:385–98.
the pairwise odds ratio quantifies association (concor- 12. Diez Roux AV, Merkin SS, Arnet D, et al. Neighborhood of
residence and incidence of coronary heart disease. N Engl J
dance/discordance) between pairs of individuals within-
Med 2001;345:99–106.
cluster.
13. Diez-Roux AV, Nieto FJ, Muntaner C, et al. Neighborhood
Both the MOR and the IOR are very easy to calculate, environments and coronary heart disease: a multilevel analy-
since they are simple functions of the parameters in the sis. Am J Epidemiol 1997;146:48–63.
model. Thus, no additional analyses are necessary. A pocket 14. Merlo J, Gerdtham UG, Lynch J, et al. Social inequalities in
calculator with exponential and square root functions is health—do they diminish with age? Revisiting the question
sufficient for calculating the measures from the parameters. in Sweden 1999. Int J Equity Health 2003;2:2. (Electronic
The MOR and the IOR may be extended to higher-order article).
multilevel models, models with a nonhierarchical structure, 15. Rasbash J, Browne W, Goldstein H, et al. A user’s guide to
MLwiN. 2nd ed. London, United Kingdom: Institute of Edu-
and models with random slopes. They can also be extended cation, University of London, 2000. (World Wide Web URL:
to log-linear (Poisson) and linear (normal) responses, as well http://multilevel.ioe.ac.uk/1_10/manuals.html).
as to models with nonnormal random effects. 16. Elmore JG, Miglioretti DL, Reisch LM, et al. Screening
mammograms by community radiologists: variability in
false-positive rates. J Natl Cancer Inst 2002;94:1373–80.
17. Katz J, Carey VJ, Zeger SL, et al. Estimation of design
ACKNOWLEDGMENTS effects and diarrhea clustering within households and vil-
lages. Am J Epidemiol 1993;138:994–1006.
This study was supported by grants 2002-054 and 18. Carey VJ, Zeger SL, Diggle P. Modelling multivariate binary
2003-0580 (Principal Investigator, Dr. Juan Merlo) from the data with alternating logistic regressions. Biometrika 1993;
Swedish Council for Working Life and Social Research. 80:517–26.

Am J Epidemiol 2005;161:81–88
88 Larsen and Merlo

APPENDIX 2 –1
z = exp ( 2 × σ × Φ ( 0.75 ) ).
Mathematical Derivations

The interval odds ratio (IOR)


The median odds ratio (MOR)
The odds ratio between two persons from two different clus-
The odds ratio between two persons with identical covari- ters with covariates x1 and x2 is exp(β × (x1 – x2) + (u1 – u2)).
ates from two different clusters is exp(u1 – u2), where u1 and u2 Since data for the two cluster variables are independent and
are the two random cluster variables. Consequently, the odds normally distributed, the odds ratio is lognormally distributed
ratio for the person with the higher propensity versus the with cumulative distribution function G, where, for z > 0,
person with the lower propensity is exp ( u 1 – u 2 ) . Since data
for the two cluster variables are assumed to be independent G ( z ) = P ( exp ( β × ( x 1 – x 2 ) + ( u 1 – u 2 ) ) ≤ z )
and normally distributed with mean zero and variance σ2, the
distribution of exp ( u 1 – u 2 ) may be characterized by the ⎛ u 1 – u 2 log ( z ) – β × ( x 1 – x 2 )⎞
= P ⎜ ------------------- ≤ ----------------------------------------------------⎟
cumulative distribution, F, in the following way. For z > 0, ⎝ 2 × σ2 2×σ
2 ⎠

Downloaded from https://academic.oup.com/aje/article/161/1/81/73690 by guest on 26 March 2024


F ( z ) = P ( exp ( u 1 – u 2 ) ≤ z ) ⎛ log ( z ) – β × ( x 1 – x 2 )⎞
= Φ ⎜ ---------------------------------------------------
-⎟ .
⎛ u1 – u2 log ( z ) ⎞ ⎝ 2×σ
2 ⎠
- ≤ -------------------⎟
= P ⎜ ------------------
⎝ 2×σ 2
2×σ ⎠
2
Consequently, the density, g(·), becomes
⎛ log ( z ) ⎞ ∂
= 2Φ ⎜ -------------------⎟ – 1, g ( z ) = ----- G ( z )
⎝ 2 × σ 2⎠ ∂z
1 1 ⎛ log ( z ) – β × ( x 1 – x 2 )⎞
where Φ(·) is the cumulative distribution function for the = --- ------------------- ϕ ⎜ ----------------------------------------------------⎟ .
z 2 ⎝ 2 ⎠
standard normal distribution—that is, a normal distribution 2×σ 2×σ
with mean 0 and variance 1. Thus, the density function, f (·),
for the distribution of exp ( u 1 – u 2 ) becomes The a-percentile in the distribution of the odds ratio is the
solution to G(z) = a, which leads to

f ( z ) = ----- F ( z ) z = exp ( β × ( x 1 – x 2 ) + 2 × σ × Φ ( a ) ).
2 –1
∂z
1 2 ⎛ ------------------
log ( z ) ⎞ In particular, the 10th percentile is
= --- -----ϕ ⎜ -⎟ .
z σ ⎝
2×σ ⎠
2 2 2 –1
IOR lower = exp ( β × ( x 1 – x 2 ) + 2 × σ × Φ ( 0.1 ) ),

The MOR is the median of this distribution, so it can be and the 90th percentile is
calculated as the solution to the equation, F(z) = 0.5, which
2 –1
leads to IOR upper = exp ( β × ( x 1 – x 2 ) + 2 × σ × Φ ( 0.9 ) ).

Am J Epidemiol 2005;161:81–88

You might also like