- Methodology
- Open Access
- Published:

# An easy approach to the Robins-Breslow-Greenland variance estimator

*Epidemiologic Perspectives & Innovations*
**volumeÂ 2**, ArticleÂ number:Â 9 (2005)

## Abstract

The Mantel-Haenszel estimate for the odds ratio (and its logarithm) in stratified case control studies lacked a generally acceptable variance estimate for many years. The Robins-Breslow-Greenland estimate has met this need, but standard textbooks still do not provide an explanation of how it is derived. This article provides an accessible derivation which demonstrates the link between the Robins-Breslow-Greenland estimate and the familiar Woolf estimate for the variance of the log odds ratio, and which could easily be included in Masters level courses in epidemiology. The relationships to the unconditional and conditional maximum likelihood estimates are also reviewed.

## Introduction

The Mantel-Haenszel (MH) estimate for the summary odds ratio across several 2 Ã— 2 tables, *Ïˆ*
_{
MH
}, was proposed in 1959 [1]. Over twenty years later the lack of a robust estimate for its variance was still being noted [2], yet only a few years afterwards, Robins, Breslow and Greenland introduced their now generally-accepted variance estimator [3] for the Mantel-Haenszel log-odds ratio (denoted by the RBG estimate). This replaced estimation of confidence limits based on the unsatisfactory test-based procedure of Miettinen or the computationally intensive Cornfield type limits which had hitherto been used.

While a useful review of Mantel-Haenszel methods has been published, including some aspects of the historical development towards the RBG estimator [4] the formal derivations by Robins, Breslow & Greenland [3] and Phillips & Holland [5] are not, in the view of this author, easily comprehended. The former omits steps in the argument, while the latter appeals to descending factorial powers. Possibly it is no surprise that even modern textbooks [6, 7] merely state the RBG formula without deriving it.

While other variance estimators exist, some are ad hoc, such as the application of the cohort study formula to case-control data suggested by Clayton and Hills [8], only apply to the large few strata case [9] or are closely related to the RBG estimator [10]. One rather different exception is Sato's formula [11] but this procedure gives confidence limits directly in the odds ratio scale.

It is the intention of this article to present an informal derivation of the RBG estimator as an extension of the familiar variance formula of Woolf [12], and which could readily be included in standard textbooks of epidemiology or biostatistics. I will describe this from the perspective of a case-control study.

## Analysis

### How does the Mantel-Haenszel estimate arise?

Consider a stratified case-control study for which the i^{th} of k independent tables is:

Neglecting constants, the unconditional likelihood for the i^{th} table is:

where in the i^{th} table *Î¸*
_{
i
} = probability of exposure if a case and *Ã¸*
_{
i
} = probability of exposure if a control.

The maximum likelihood estimate (MLE) for *Ã¸*
_{
i
} is given by *b*
_{
i
}/(*b*
_{
i
} + *d*
_{
i
}) and if we re-parameterise *Î¸*
_{
i
} as *Ïˆ*
*Ã¸*
_{
i
}
*/* [*Ïˆ*
*Ã¸*
_{
i
} + (1 - *Ã¸*
_{
i
})], where *Ïˆ* is the odds ratio (assumed common to all tables), the contribution to the overall log likelihood made by terms involving *Ïˆ* is:

âˆ‘ *a*
_{
i
} ln {*Ïˆ*
*Ã¸*
_{
i
}/[*Ïˆ*
*Ã¸*
_{
i
} + (1 - *Ã¸*
_{
i
})]} + *c*
_{
i
} ln {1/[*Ïˆ*
*Ã¸*
_{
i
} + (1 - *Ã¸*
_{
i
})]}.

Differentiating with respect to *Ïˆ* and equating to zero, and rearranging (noting that *a*
_{
i
} + *c*
_{
i
} = *n*
_{1i
})

we obtain:

âˆ‘ *a*
_{
i
} ln {*Ïˆ*
*Ã¸*
_{
i
}/[*Ïˆ*
*Ã¸*
_{
i
} + (1 - *Ã¸*
_{
i
})]} + *c*
_{
i
} ln {1/[*Ïˆ*
*Ã¸*
_{
i
} + (1 - *Ã¸*
_{
i
})]}.

i.e., âˆ‘ {*a*
_{
i
} - *n*
_{1i
}
*Ïˆ*
*Ã¸*
_{
i
}/[*Ïˆ*
*Ã¸*
_{
i
} + (1 - *Ã¸*
_{
i
})]} = 0

i.e., âˆ‘ {[*Ïˆ*
*a*
_{
i
}
*Ã¸*
_{
i
} + *a*
_{
i
} - *a*
_{
i
}
*Ã¸*
_{
i
} - *n*
_{1i
}
*Ïˆ*
*Ã¸*
_{
i
}]/[*Ïˆ*
*Ã¸*
_{
i
} + (1 - *Ã¸*
_{
i
})]} = 0.

This must be solved numerically to obtain the MLE for *Ïˆ*, but if the denominators do not vary too much across the tables we merely have to solve:

âˆ‘ [*Ïˆ*
*a*
_{
i
}
*Ã¸*
_{
i
} + *a*
_{
i
} - *a*
_{
i
}
*Ã¸*
_{
i
} - *n*
_{1i
}
*Ïˆ*
*Ã¸*
_{
i
}] = 0

i.e., âˆ‘ [*Ïˆ*(*a*
_{
i
} - *n*
_{1i
})*Ã¸*
_{
i
} + *a*
_{
i
} (1 - *Ã¸*
_{
i
})] = 0

or, âˆ‘ *a*
_{
i
} (1 - *Ã¸*
_{
i
}) = âˆ‘ *Ïˆ*(*n*
_{1i
} - *a*
_{
i
})*Ã¸*
_{
i
}

giving, âˆ‘ *a*
_{
i
} (1 - *Ã¸*
_{
i
}) = *Ïˆ* âˆ‘ (*n*
_{1i
} - *a*
_{
i
})*Ã¸*
_{
i
}

and since, *Ïˆ*
_{
i
} = *b*
_{
i
}/(*b*
_{
i
} + *d*
_{
i
}) = *b*
_{
i
}/*n*
_{0i
}

This can be used as a first approximation to find the MLE (if there is only one table then *Ïˆ*
*is* the unconditional MLE = ad/bc). Now in stratified case-control studies with a constant ratio, *r*, of controls to cases, the total number of subjects in each stratum is given by *n*
_{
i
} = *n*
_{0i
} (1 + *r*), so *n*
_{0i
} = *n*
_{
i
}/(1 + *r*). A constant *r* will be achieved by design if there is caliper matching; otherwise â€“ as with a post-stratified analysis â€“ this will be only approximately true. The term (1 + *r*) can then be cancelled and we are left with:

The MH estimator is therefore a first approximation to the unconditional MLE in the large strata case with a constant control:case ratio across strata. However the MH estimator actually *coincides* with the *conditional* MLE for the matched pairs design, as outlined, for example on page 164 of Breslow & Day [2].

The sensitivity to variation in the *Ã¸*
_{
i
} and constancy of the control:case ratio is not high, as shown by the data in Table 1. In a sense this would be expected because for the most sparse (e.g., pair-matched) data the control:case ratio will be constant, and while the *Ã¸*
_{
i
} then have maximum variance â€“ being only 0 and 1, the MH estimate coincides with the conditional MLE. Conversely, for large strata the control:case ratio will vary, but the variance of the *Ã¸*
_{
i
} will be less and the MH estimate will then approximate the unconditional MLE.

### Deriving the variance of the Mantel-Haenszel estimate

Consider again the i^{th} 2 Ã— 2 table, giving the frequencies in each cell:

For odds ratio , estimated for a single table by the cross-product ratio *a*
_{
i
}
*d*
_{
i
}/*b*
_{
i
}
*c*
_{
i
}, application of the delta method gives Woolf's logit-based formula [8]:

with *n*_{
i
} = *a*_{
i
} + *b*_{
i
} + *c*_{
i
} + *d*_{
i
} and,

The delta method is a widely used procedure in statistics when an approximation is needed for the variance of a function of a variable whose variance is known. In this instance the variable with known variance is a proportion *p*, and the function is the logit. The basic delta method formula is: var(*y*) â‰ˆ (*dy*/*dx*)^{2} var(*x*) from which, if *y* = *logit*(*p* = ln[*p*/(1 - *p*)],

var(*y*) â‰ˆ (1/*p* + 1/(1 - *p*))^{2}
*p*(1 - *p*)/*n*

= (1/*p* + 1/(1 - *p*))1/*n*

= (1/*a* + 1/*b*)

if *p* = *a*/*n* and *n* = *a* + *b*.

Here we have two independent proportions (the proportion of cases and controls exposed) and Woolf's formula is obtained by estimating the variances of the separate logits and adding them.

For k such 2 Ã— 2 tables, each representing a separate stratum, the Mantel-Haenszel pooled estimate of the *common* odds ratio *Ïˆ* is given by:

Hence *Ïˆ*
_{
MH
} is a weighted average of the stratum-specific odds ratios. The weights approximate the inverse of the variance of each
_{
i
} if the true value of *Ïˆ* = 1. Note that the assumption here of a common odds ratio is not required for the Mantel-Haenszel *test*.

To derive the variance, in addition to the approximation involved in application of the delta rule, an assumption is also made that each stratum-specific odds ratio is close enough to the Mantel-Haenszel pooled estimate to permit terms like *a*
_{
i
}
*d*
_{
i
}/*b*
_{
i
}
*c*
_{
i
} to be replaced by *Ïˆ*
_{
MH
}.

We then proceed by obtaining an approximation which avoids zeros in the formula for var[ln()]. The motivation for this can be seen by comparing the weights for *Ïˆ*
_{
MH
} â€“ which are unaffected by zeros except for deleting such strata â€“ whereas if Woolf's variances were used, the result would be indeterminate if cells with zeros were present.

Taking the weights as constant,

Assuming a common odds ratio *Ïˆ*, estimated by *Ïˆ*
_{
MH
}, this can be written as:

Leading to a formula suggested by Hauck [9]:

As mentioned above, a problem with this formula is that it fails if cell entries are zero. However we can proceed further by re-writing the formula as:

On substituting 1/*Ïˆ*
_{
MH
} for (*b*
_{
i
}
*c*
_{
i
}/*a*
_{
i
}
*d*
_{
i
}):

Now if the rows of the 2 Ã— 2 table are interchanged, the variance stays the same. But a similar argument to that above leads to:

(Note that the new odds ratio formed by exchanging rows is just 1/*Ïˆ*
_{
MH
}.) "The" variance, V, of ln(*Ïˆ*
_{
MH
}) is therefore taken to be the mean of the two estimates [13] as follows:

Let R = âˆ‘ (*a*
_{
i
}
*d*
_{
i
}/*n*
_{
i
}) and S = âˆ‘ (*b*
_{
i
}
*c*
_{
i
}/*n*
_{
i
}). On substituting into the two variance formulae:

Next, divide the top and bottom by S^{2} and move the term outside the brackets to obtain:

which is eq. 9 in Phillips & Holland [5].

If we now put

P_{i} = (*a*
_{
i
} + *d*
_{
i
})/*n*
_{
i
} and Q_{i} = (*b*
_{
i
} + *c*
_{
i
})/*n*
_{
i
} with R_{i} = *a*
_{
i
}
*d*
_{
i
}/*n*
_{
i
} and S_{i} = *b*
_{
i
}
*c*
_{
i
}/*n*
_{
i
}

then

which on multiplying out the brackets, rearranging and noting that R/S = *Ïˆ*
_{
MH
}, gives:

This is the RBG formula!

When there is only one stratum, this reduces to (1/*a* + 1/*b* + 1/*c* + 1/*d*) which is the familiar logit based formula of Woolf and which approaches 0 as the sample size increases, assuming a finite true odds ratio. Clearly as the RBG variance estimate is a finite sum of such estimators the RBG estimate will also approach 0, for large strata.

The RBG estimator was derived above on the assumption that the stratum-specific odds ratio estimates could be liberally replaced by the common value, in turn estimated by *Ïˆ*
_{
MH
}; both assumptions are reasonable with large samples per stratum. However, the success of the RBG formula derives from its being applicable also to the sparse data case.

To see this, consider a matched-pairs case control study. The capital letters denote the frequency of case-control pairs.

In such a study each stratum has only two observations. The table can be decomposed into four types of "unmatched" table according to the exposure category of the case and the control, the frequency of each type being given by the frequency of the corresponding case-control pairs:

Only the B such tables with *a*
_{
i
} = *d*
_{
i
} = 1 and the C such tables with *b*
_{
i
} = *c*
_{
i
} = 1 contribute to the estimate of the odds ratio. Note that these are disjoint sets of tables.

Under these circumstances: *Ïˆ*
_{
MH
} = B/C which coincides with the conditional MLE and:

a) the middle term of the RBG formula vanishes because if *b*
_{
i
}
*c*
_{
i
} = 1 then (*a*
_{
i
} + *d*
_{
i
}) = 0, and if *a*
_{
i
}
*d*
_{
i
}
*=* 1 then (*b*
_{
i
}
*+ c*
_{
i
}) = 0

b) R = âˆ‘ *a*
_{
i
}
*d*
_{
i
}/*n*
_{
i
}
*=* B/2 & S = âˆ‘ *b*
_{
i
}
*c*
_{
i
}/*n*
_{
i
} = C/2

c) There are B terms in which *a*
_{
i
}
*d*
_{
i
} (*a*
_{
i
} + *d*
_{
i
}) = 2 C terms in which *b*
_{
i
}
*c*
_{
i
} (*b*
_{
i
} + *c*
_{
i
}) = 2

giving:

V = B/B^{2} + C/C^{2} = 1/B + 1/C

This is not only the familiar logit based formula for the variance of the log odds ratio for matched pairs, but is also the variance of the conditional maximum likelihood estimate. This is asymptotically consistent from the general properties of a MLE (and it's easy to see that as the number of tables increases, V â†’ 0).

In other words, the RBG formula, though derived here without assuming validity in the sparse case, does in fact possess this property.

Table 1 shows how closely the conditional maximum likelihood estimate, unconditional maximum likelihood estimate, and MH estimate agree, despite varying *Ã¸*
_{
i
} and control:case ratio.

## Conclusion

The Mantel-Haenszel estimate of the odds ratio approximates the maximum likelihood estimate for large, few strata and coincides with the conditional maximum likelihood estimate for the sparse data (matched pairs) case.

The RBG formula is the estimator of choice for the variance of the Mantel-Haenszel log-odds-ratio because it applies both in the large few strata case and in the many sparse strata case (as in matched pairs analysis), when the RBG variance estimate actually coincides with the conditional maximum likelihood variance estimate.

Moreover the RBG formula reduces to familiar standard forms for a single stratum and for matched pairs.

Formal derivation of the RBG formula is tricky but an informal, accessible derivation is possible as outlined above, which uses nothing more advanced than the delta method for approximating a variance.

## References

Mantel N, Haenszel W:

**Statistical aspects of the analysis of data from retrospective studies of disease.***JNCI*1959,**22:**719â€“748.Breslow NE, Day NE:

*Statistical methods in cancer research, Volume 1 â€“ the analysis of case-control studies*Lyons: International Agency for Research on Cancer 1980.Robins J, Breslow N, Greenland S:

**Estimators of the Mantel-Haenszel variance consistent in both sparse data and large-strata limiting models.***Biometrics*1986,**42:**311â€“323.Kuritz SJ, Landis JR, Koch GG:

**A general overview of Mantel-Haenszel methods: applications and recent developments.***Ann Rev Public Health*1988,**9:**123â€“160.Phillips A, Holland PW:

**Estimators of the variance of the Mantel-Haenszel log-odds-ratio estimate.***Biometrics*1987,**43:**425â€“431.Armitage P, Berry G, Matthews JNS:

*Statistical methods in medical research**4 Edition*Oxford: Blackwell Science 2002.Fleiss JL, Levin B, Paik MC:

*Statistical Methods for Rates & Proportions*Chichester: John Wiley 2003.Clayton D, Hills M:

*Statistical methods in epidemiology*Oxford: Oxford University Press 1995.Hauck WW:

**The large-sample variance of the Mantel-Haenszel estimator of a common odds ratio.***Biometrics*1979,**35:**817â€“819.Flanders WD:

**A new variance estimator for the Mantel-Haenszel odds ratio.***Biometrics*1985,**41:**637â€“642.Sato T:

**Confidence limits for the Common Odds Ratio Based on the Asymptotic Distribution of the Mantel-Haenszel Estimator.***Biometrics*1990,**46:**71â€“80.Woolf B:

**On estimating the relationship between blood group and disease.***Human Genet*1955,**19:**251â€“253.Ury HK:

**Hauck's approximate large-sample variance of the Mantel-Haenszel estimator [letter].***Biometrics*1982,**38:**1094â€“1095.

## Author information

### Authors and Affiliations

### Corresponding author

## Additional information

### Competing interests

The author(s) declare that they have no competing interests.

## Rights and permissions

**Open Access**
This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution License (
https://creativecommons.org/licenses/by/2.0
), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

## About this article

### Cite this article

Silcocks, P. An easy approach to the Robins-Breslow-Greenland variance estimator.
*Epidemiol Perspect Innov* **2**, 9 (2005). https://doi.org/10.1186/1742-5573-2-9

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/1742-5573-2-9

- Odds ratio
- Variance
- Robins-Breslow-Greenland
- RBG estimate