American Journal of Epidemiology Advance Access originally published online on June 29, 2005
American Journal of Epidemiology 2005 162(3):199-200; doi:10.1093/aje/kwi188
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
INVITED EDITORIAL NOTE |
Easy SAS Calculations for Risk or Prevalence Ratios and Differences
American Journal of Epidemiology Departments of Epidemiology and Biostatistics Harvard School of Public Health Boston, MA 02115
Department of Epidemiology Harvard School of Public Health Boston, MA 02115
We would like to make the readership aware that risk or prevalence ratios and differences, when they are the parameter of interest, can be directly calculated by using SAS software (SAS Institute, Inc., Cary, North Carolina). There is no longer any good justification for fitting logistic regression models and estimating odds ratios when the odds ratio is not a good approximation of the risk or prevalence ratio. Instead, SAS PROC GENMOD's log-binomial regression (1
) capability can be used for estimation and inference about the parameter of interest. Here is an example of the code required to analyze the breast cancer survival data discussed by Greenland (2
):
- proc genmod descending;
- model death=receptor stage2 stage3/dist=bin link=log;
- estimate RR receptor low vs. high receptor 1/exp;
- estimate RR stage2 vs stage1 stage2 1/exp;
- estimate RR stage 3 vs stage1 stage3 1/exp;
- model death=receptor stage2 stage3/dist=bin link=log;
There are times when the log-binomial model fails to converge. It is well known that the log-binomial model is less numerically stable than the logistic model. When this is the case, the analyst may use SAS PROC GENMOD's Poisson regression capability with the robust variance (3
, 4
), as follows:
- proc genmod;
- class id;
- model death=receptor stage2 stage3/dist=poisson link=log;
- repeated subject=id/type=ind;
- estimate RR receptor low vs. high receptor 1/exp;
- estimate RR stage2 vs stage1 stage2 1/exp;
- estimate RR stage 3 vs stage1 stage3 1/exp;
- class id;
By replacing link=log with link=identity in the MODEL statement, multivariate-adjusted risk (prevalence) differences are obtained as follows:
- proc genmod descending;
- model death=receptor stage2 stage3/dist=bin link=identity;
- model death=receptor stage2 stage3/dist=bin link=identity;
- proc genmod;
- class id;
- model death=receptor stage2 stage3/dist=poisson link=identity;
- repeated subject=id/type=ind;
- class id;
A well-documented, user-friendly SAS macro, %RELRISK8, has been developed that automates this computational and analytic approach. The modified Poisson estimates are used to start the iterations to obtain the log-binomial maximum likelihood estimates. These are the final estimates if convergence of the binomial likelihood is not obtained. The macro can be downloaded from the first author's website (http://www.hsph.harvard.edu/faculty/spiegelman/relrisk8.html).
| ACKNOWLEDGMENTS |
|---|
Conflict of interest: none declared.
| References |
|---|
|
|
|---|
- Wacholder S. Binomial regression in GLIM: estimating risk ratios and risk differences. Am J Epidemiol 1986;123:17484.
[Abstract/Free Full Text] - Greenland S. Model-based estimation of relative risks and other epidemiologic measures in studies of common outcomes and in case-control studies. Am J Epidemiol 2004;160:3015.
[Abstract/Free Full Text] - Huber PJ. The behavior of maximum likelihood estimates under non-standard conditions. In: Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability. Vol 1. Berkeley, CA: University of California Press, 1967:22133.
- Zou G. A modified Poisson regression approach to prospective studies with binary data. Am J Epidemiol 2004;159:7026.
[Abstract/Free Full Text]
This article has been cited by other articles:
![]() |
R. K. Hernandez, H. T. Sorensen, J. Jacobsen, L. Pedersen, and T. L. Lash Tamoxifen Treatment in Danish Breast Cancer Patients and 5-Year Risk of Arterial Atherosclerotic Events: A Null Association Cancer Epidemiol. Biomarkers Prev., September 1, 2008; 17(9): 2509 - 2511. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. K. Smith, E. P. McCarthy, E. Paulk, T. A. Balboni, P. K. Maciejewski, S. D. Block, and H. G. Prigerson Racial and Ethnic Differences in Advance Care Planning Among Patients With Cancer: Impact of Terminal Illness Acknowledgment, Religiousness, and Treatment Preferences J. Clin. Oncol., September 1, 2008; 26(25): 4131 - 4137. [Abstract] [Full Text] [PDF] |
||||
![]() |
T. P. Lodise, J. Graves, A. Evans, E. Graffunder, M. Helmecke, B. M. Lomaestro, and K. Stellrecht Relationship between Vancomycin MIC and Failure among Patients with Methicillin-Resistant Staphylococcus aureus Bacteremia Treated with Vancomycin Antimicrob. Agents Chemother., September 1, 2008; 52(9): 3315 - 3320. [Abstract] [Full Text] [PDF] |
||||
![]() |
N. Patel, L.-A. McNutt, and T. P. Lodise Relationship between Various Definitions of Prior Antibiotic Exposure and Piperacillin-Tazobactam Resistance among Patients with Respiratory Tract Infections Caused by Pseudomonas aeruginosa Antimicrob. Agents Chemother., August 1, 2008; 52(8): 2933 - 2936. [Abstract] [Full Text] [PDF] |
||||
![]() |
M S O'Neill, A V Diez-Roux, A H Auchincloss, T G Franklin, D R Jacobs Jr, B C Astor, J T Dvonch, and J Kaufman Airborne particulate matter exposure and urinary albumin excretion: the Multi-Ethnic Study of Atherosclerosis Occup. Environ. Med., August 1, 2008; 65(8): 534 - 540. [Abstract] [Full Text] [PDF] |
||||
![]() |
G. Y. Zou On the Estimation of Additive Interaction by Use of the Four-by-two Table and Beyond Am. J. Epidemiol., July 15, 2008; 168(2): 212 - 224. [Abstract] [Full Text] [PDF] |
||||
![]() |
M. C. Tan, A. Felde, M. Kuskowski, H. Ward, R. F. Kelly, A. S. Adabag, and M. Dysken Incidence and Predictors of Post-Cardiotomy Delirium Am J Geriatr Psychiatry, July 1, 2008; 16(7): 575 - 583. [Abstract] [Full Text] [PDF] |
||||
![]() |
J A Deddens and M R Petersen Approaches for estimating prevalence ratios Occup. Environ. Med., July 1, 2008; 65(7): 501 - 506. [Full Text] [PDF] |
||||
![]() |
A. I. Schneiderman, E. R. Braver, and H. K. Kang Understanding Sequelae of Injury Mechanisms and Mild Traumatic Brain Injury Incurred during the Conflicts in Iraq and Afghanistan: Persistent Postconcussive Symptoms and Posttraumatic Stress Disorder Am. J. Epidemiol., June 15, 2008; 167(12): 1446 - 1452. [Abstract] [Full Text] [PDF] |
||||
![]() |
R Slama, O Boutou, B Ducot, and A Spira Reproductive life events in the population living in the vicinity of a nuclear waste reprocessing plant J. Epidemiol. Community Health, June 1, 2008; 62(6): 513 - 521. [Abstract] [Full Text] [PDF] |
||||
![]() |
R. Kupka, F. Mugusi, S. Aboud, G. I Msamanga, J. L Finkelstein, D. Spiegelman, and W. W Fawzi Randomized, double-blind, placebo-controlled trial of selenium supplements among HIV-infected pregnant women in Tanzania: effects on maternal and child outcomes Am. J. Clinical Nutrition, June 1, 2008; 87(6): 1802 - 1808. [Abstract] [Full Text] [PDF] |
||||
![]() |
L. S. Massad, E. C. Seaberg, R. L. Wright, T. Darragh, Y.-C. Lee, C. Colie, R. Burk, H. D. Strickler, and D. H. Watts Squamous Cervical Lesions in Women With Human Immunodeficiency Virus: Long-Term Follow-up Obstet. Gynecol., June 1, 2008; 111(6): 1388 - 1393. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. Arntzen, L. Mortensen, O. Schnor, S. Cnattingius, M. Gissler, and A.-M. N. Andersen Neonatal and postneonatal mortality by maternal education--a population-based study of trends in the Nordic countries, 1981-2000 Eur J Public Health, June 1, 2008; 18(3): 245 - 251. [Abstract] [Full Text] [PDF] |
||||
![]() |
J-L Martin, K Perez, M Mari-Dell'Olmo, and M Chiron Whiplash risk estimation based on linked hospital-police road crash data from France and Spain Inj. Prev., June 1, 2008; 14(3): 185 - 190. [Abstract] [Full Text] [PDF] |
||||
![]() |
C. R. Fonseca, C. G. Becker, C. F. B. Haddad, and P. I. Prado Response to Comment on "Habitat Split and the Global Decline of Amphibians" Science, May 16, 2008; 320(5878): 874d - 874d. [Abstract] [Full Text] [PDF] |
||||
![]() |
L. V. Moore, A. V. Diez Roux, J. A. Nettleton, and D. R. Jacobs Jr Associations of the Local Food Environment with Diet Quality--A Comparison of Assessments based on Surveys and Geographic Information Systems: The Multi-Ethnic Study of Atherosclerosis Am. J. Epidemiol., April 15, 2008; 167(8): 917 - 924. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. V. Diez Roux, A. H. Auchincloss, T. G. Franklin, T. Raghunathan, R. G. Barr, J. Kaufman, B. Astor, and J. Keeler Long-term Exposure to Ambient Particulate Matter and Prevalence of Subclinical Atherosclerosis in the Multi-Ethnic Study of Atherosclerosis Am. J. Epidemiol., March 15, 2008; 167(6): 667 - 675. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. Espelt, C. Borrell, M. Rodriguez-Sanz, C. Muntaner, M I. Pasarin, J. Benach, M. Schaap, A. E Kunst, and V. Navarro Inequalities in health by social class dimensions in European countries of different political traditions Int. J. Epidemiol., March 13, 2008; (2008) dyn051v1. [Abstract] [Full Text] [PDF] |
||||
![]() |
T. J. Vanderweele and J. M. Robins Empirical and counterfactual conditions for sufficient cause interactions Biometrika, March 1, 2008; 95(1): 49 - 61. [Abstract] [PDF] |
||||
![]() |
D. L. Hershman, D. Buono, R. B. McBride, W. Y. Tsai, K. A. Joseph, V. R. Grann, and J. S. Jacobson Surgeon Characteristics and Receipt of Adjuvant Radiotherapy in Women With Breast Cancer J Natl Cancer Inst, February 6, 2008; 100(3): 199 - 206. [Abstract] [Full Text] [PDF] |
||||
![]() |
J S Delaney, A Al-Kashmiri, R Drummond, and J A Correa The effect of protective headgear on head injuries and concussions in adolescent football (soccer) players Br. J. Sports Med., February 1, 2008; 42(2): 110 - 115. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. V Perruccio, J D. Power, and E. M Badley The relative impact of 13 chronic conditions across three different outcomes J. Epidemiol. Community Health, December 1, 2007; 61(12): 1056 - 1061. [Abstract] [Full Text] [PDF] |
||||
![]() |
S. M. Kennedy, R. Chambers, W. Du, and H. Dimich-Ward Environmental and Occupational Exposures: Do They Affect Chronic Obstructive Pulmonary Disease Differently in Women and Men? Proceedings of the ATS, December 1, 2007; 4(8): 692 - 694. [Abstract] [Full Text] [PDF] |
||||
![]() |
C Wang, S E Hawes, A Gaye, P S Sow, I Ndoye, L E Manhart, A Wald, C W Critchlow, and N B Kiviat HIV prevalence, previous HIV testing, and condom use with clients and regular partners among Senegalese commercial sex workers Sex. Transm. Inf., December 1, 2007; 83(7): 534 - 540. [Abstract] [Full Text] [PDF] |
||||
![]() |
S. Isanaka, M. Mora-Plazas, S. Lopez-Arana, A. Baylin, and E. Villamor Food Insecurity Is Highly Prevalent and Predicts Underweight but Not Overweight in Adults and School Children from Bogota, Colombia J. Nutr., December 1, 2007; 137(12): 2747 - 2755. [Abstract] [Full Text] [PDF] |
||||
![]() |
V. Lorant, S. Demarest, P.-J. Miermans, and H. Van Oyen Survey error in measuring socio-economic risk factors of health status: a comparison of a survey and a census Int. J. Epidemiol., December 1, 2007; 36(6): 1292 - 1299. [Abstract] [Full Text] [PDF] |
||||
![]() |
Y. B. Cheung A Modified Least-Squares Regression Approach to the Estimation of Risk Difference Am. J. Epidemiol., December 1, 2007; 166(11): 1337 - 1344. [Abstract] [Full Text] [PDF] |
||||
![]() |
S. I. Savitz, R. Lew, E. Bluhmki, W. Hacke, and M. Fisher Shift Analysis Versus Dichotomization of the Modified Rankin Scale Outcome Scores in the NINDS and ECASS-II Trials Stroke, December 1, 2007; 38(12): 3205 - 3212. [Abstract] [Full Text] [PDF] |
||||
![]() |
D. Sluik, L. M Oude Griep, and J. M Geleijnse Fruit and vegetable intake and the metabolic syndrome Am. J. Clinical Nutrition, November 1, 2007; 86(5): 1548 - 1548. [Full Text] [PDF] |
||||
![]() |
A. Nieto, A. Mazon, R. Pamies, J. J. Linana, A. Lanuza, F. O. Jimenez, A. Medina-Hernandez, and F. J. Nieto Adverse Effects of Inhaled Corticosteroids in Funded and Nonfunded Studies Arch Intern Med, October 22, 2007; 167(19): 2047 - 2053. [Abstract] [Full Text] [PDF] |
||||
![]() |
C. C. Haley, D. Mittal, A. LaViolette, S. Jannapureddy, N. Parvez, and R. W. Haley Methicillin-Resistant Staphylococcus aureus Infection or Colonization Present at Hospital Admission: Multivariable Risk Factor Screening To Increase Efficiency of Surveillance Culturing J. Clin. Microbiol., September 1, 2007; 45(9): 3031 - 3038. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. H. Schempf, A. M. Branum, S. L. Lukacs, and K. C. Schoendorf The Contribution of Preterm Birth to the Black-White Infant Mortality Gap, 1990 and 2000 Am J Public Health, July 1, 2007; 97(7): 1255 - 1260. [Abstract] [Full Text] [PDF] |
||||
![]() |
E. L. Ding, N. R. Powe, J. E. Manson, N. S. Sherber, and J. B. Braunstein Sex Differences in Perceived Risks, Distrust, and Willingness to Participate in Clinical Trials: A Randomized Study of Cardiovascular Prevention Trials Arch Intern Med, May 14, 2007; 167(9): 905 - 912. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. S. Kong, R. L. Williams, M. Smith, A. L. Sussman, B. Skipper, A. C. Hsi, R. L. Rhyne, and On behalf of RIOS Net Clinicians Acanthosis Nigricans and Diabetes Risk Factors: Prevalence in Young Persons Seen in Southwestern US Primary Care Practices Ann. Fam. Med, May 1, 2007; 5(3): 202 - 208. [Abstract] [Full Text] [PDF] |
||||
![]() |
W. W. Fawzi, G. I. Msamanga, W. Urassa, E. Hertzmark, P. Petraro, W. C. Willett, and D. Spiegelman Vitamins and Perinatal Outcomes among HIV-Negative Women in Tanzania N. Engl. J. Med., April 5, 2007; 356(14): 1423 - 1431. [Abstract] [Full Text] [PDF] |
||||
![]() |
B. K. S. Chan, L. M. Marshall, K. M. Winters, K. A. Faulkner, A. V. Schwartz, and E. S. Orwoll Incident Fall Risk and Physical Activity and Physical Performance among Older Men: The Osteoporotic Fractures in Men Study Am. J. Epidemiol., March 15, 2007; 165(6): 696 - 703. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. Sekikawa, H. Ueshima, T. Kadowaki, A. El-Saed, T. Okamura, T. Takamiya, A. Kashiwagi, D. Edmundowicz, K. Murata, K. Sutton-Tyrrell, et al. Less Subclinical Atherosclerosis in Japanese Men in Japan than in White Men in the United States in the Post-World War II Birth Cohort Am. J. Epidemiol., March 15, 2007; 165(6): 617 - 624. [Abstract] [Full Text] [PDF] |
||||
![]() |
S. Schneeweiss, S. Setoguchi, A. Brookhart, C. Dormuth, and P. S. Wang Risk of death associated with the use of conventional versus atypical antipsychotic drugs among elderly patients Can. Med. Assoc. J., February 27, 2007; 176(5): 627 - 632. [Abstract] [Full Text] [PDF] |
||||
![]() |
G. Y. Zou One relative risk versus two odds ratios: implications for meta-analyses involving paired and unpaired binary data Clinical Trials, February 1, 2007; 4(1): 25 - 31. [Abstract] [PDF] |
||||
![]() |
T. P. Lodise, C. D. Miller, J. Graves, J. P. Furuno, J. C. McGregor, B. Lomaestro, E. Graffunder, and L.-A. McNutt Clinical Prediction Tool To Identify Patients with Pseudomonas aeruginosa Respiratory Tract Infections at Greatest Risk for Multidrug Resistance Antimicrob. Agents Chemother., February 1, 2007; 51(2): 417 - 422. [Abstract] [Full Text] [PDF] |
||||
![]() |
S K Verma, G S Sorock, G S Pransky, T K Courtney, and G S Smith Occupational physical demands and same-level falls resulting in fracture in female workers: an analysis of workers' compensation claims Inj. Prev., February 1, 2007; 13(1): 32 - 36. [Abstract] [Full Text] [PDF] |
||||
![]() |
E. Orwoll, L. C. Lambert, L. M. Marshall, J. Blank, E. Barrett-Connor, J. Cauley, K. Ensrud, S. R. Cummings, and for the Osteoporotic Fractures in Men Study Group Endogenous testosterone levels, physical performance, and fall risk in older men. Arch Intern Med, October 23, 2006; 166(19): 2124 - 2131. [Abstract] [Full Text] [PDF] |
||||
![]() |
R. Luo, S. H. Giordano, J. L. Freeman, D. Zhang, and J. S. Goodwin Referral to Medical Oncology: A Crucial Step in the Treatment of Older Patients with Stage III Colon Cancer Oncologist, October 1, 2006; 11(9): 1025 - 1033. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. Figueiras, M. T. Herdeiro, J. Polonia, and J. J. Gestal-Otero An educational intervention to improve physician reporting of adverse drug reactions: a cluster-randomized controlled trial. JAMA, September 6, 2006; 296(9): 1086 - 1093. [Abstract] [Full Text] [PDF] |
||||
![]() |
T. Darensburg, M. E. Andrew, T. A. Hartley, C. M. Burchfiel, D. Fekedulegn, and J. M. Violanti Gender and Age Differences in Posttraumatic Stress Disorder and Depression Among Buffalo Police Officers Traumatology, September 1, 2006; 12(3): 220 - 228. [Abstract] [PDF] |
||||
![]() |
R. M. Johnson, M. Miller, M. Vriniotis, D. Azrael, and D. Hemenway Are Household Firearms Stored Less Safely in Homes With Adolescents?: Analysis of a National Random Sample of Parents Arch Pediatr Adolesc Med, August 1, 2006; 160(8): 788 - 792. [Abstract] [Full Text] [PDF] |
||||
![]() |
Y. Y. Palesch, M. D. Hill, K. J. Ryckborst, D. Tamariz, and M. D. Ginsberg The ALIAS Pilot Trial: A Dose-Escalation and Safety Study of Albumin Therapy for Acute Ischemic Stroke--II: Neurologic Outcome and Efficacy Analysis Stroke, August 1, 2006; 37(8): 2107 - 2114. [Abstract] [Full Text] [PDF] |
||||
![]() |
T. Neogi and Y. Zhang Re: "easy sas calculations for risk or prevalence ratios and differences". Am. J. Epidemiol., June 15, 2006; 163(12): 1157 - 1157. [Full Text] [PDF] |
||||
![]() |
M. R. Petersen and J. A. Deddens Re: "easy sas calculations for risk or prevalence ratios and differences". Am. J. Epidemiol., June 15, 2006; 163(12): 1158 - 1159. [Full Text] [PDF] |
||||
![]() |
D. Spiegelman and E. Hertzmark THE AUTHORS REPLY Am. J. Epidemiol., June 15, 2006; 163(12): 1159 - 1161. [Full Text] [PDF] |
||||
![]() |
L. Tian and K. Liu Re: "easy sas calculations for risk or prevalence ratios and differences". Am. J. Epidemiol., June 15, 2006; 163(12): 1157 - 1158. [Full Text] [PDF] |
||||
![]() |
M. M. Pettigrew, K. P. Fennie, M. P. York, J. Daniels, and F. Ghaffar Variation in the Presence of Neuraminidase Genes among Streptococcus pneumoniae Isolates with Identical Sequence Types. Infect. Immun., June 1, 2006; 74(6): 3360 - 3365. [Abstract] [Full Text] [PDF] |
||||
![]() |
E. Villamor, G. Msamanga, W. Urassa, P. Petraro, D. Spiegelman, D. J Hunter, and W. W Fawzi Trends in obesity, underweight, and wasting among women attending prenatal clinics in urban Tanzania, 1995-2004 Am. J. Clinical Nutrition, June 1, 2006; 83(6): 1387 - 1394. [Abstract] [Full Text] [PDF] |
||||
| |||||||||































