SAS Tips: Estimating ratios of proportions (risk ratios)
In this talk I presented SAS code written by John M. Lachin from the first edition of his textbook Biostatistical Methods: The Assessment of Relative Risks:
Logistic regression is the most commonly applied statistical model in epidemiological studies with binary outcomes. For case-control studies this is the appropriate statistical model. For cross-sectional and prospective studies, however, there are other alternatives. Logistic regression yields an odds ratio as the estimated measure of association although odds ratios are often misinterpreted as risk ratios (ratios of proportions) when there is no justification to do so [Schwartz et al.(1999), Zou (2004)]. Wacholder (1986) showed how to estimate risk ratios in the framework of generalised linear models and Zou (2004) suggested using Poisson regression with a robust variance estimator. Barros and Hirakata (2003) compare these and other methods.
My aim is not to discuss the relative merits of odds ratios versus risk ratios (there is still debate in the literature and neither is uniformly best) or the relative merits of the various approaches to estimating risk ratios. This page simply contains sample SAS code illustrating how to implement the methods proposed by Wacholder (1986) and Zou (2004). In particular, the code illustrates how problems with non-convergence when applying the Wacholder approach can (at least sometimes) be circumvented by specifying suitable initial values.
References
Barros AJ, Hirakata VN. Alternatives for logistic regression in cross-sectional studies: an empirical comparison of models that directly estimate the prevalence ratio. BMC Med Res Methodol. 2003;3:21. [Free Full text]
Schwartz LM, Woloshin S, Welch HG. Misunderstandings about the effects of race and sex on physicians’ referrals for cardiac catheterization. N Engl J Med 1999;341:279–83.
Wacholder S. Binomial regression in GLIM: estimating risk ratios and risk differences. Am J Epidemiol. 1986;123(1):174-84. [PubMed]
Zou G. A modified poisson regression approach to prospective studies with binary data. Am J Epidemiol. 2004 Apr 1;159(7):702-6. [Free Full text]