Skip to main content
Intended for healthcare professionals
Free access
Research article
First published online September 1, 2013

Computing Adjusted Risk Ratios and Risk Differences in Stata

Abstract

In this article, we explain how to calculate adjusted risk ratios and risk differences when reporting results from logit, probit, and related nonlinear models. Building on Stata's margins command, we create a new postestimation command, adjrr, that calculates adjusted risk ratios and adjusted risk differences after running a logit or probit model with a binary, a multinomial, or an ordered outcome. adjrr reports the point estimates, delta-method standard errors, and 95% confidence intervals and can compute these for specific values of the variable of interest. It automatically adjusts for complex survey design as in the fit model. Data from the Medical Expenditure Panel Survey and the National Health and Nutrition Examination Survey are used to illustrate multiple applications of the command.

7 References

Altman D. G., Deeks J. J., and Sackett D. L. 1998. Odds ratios should be avoided when events are common. British Medical Journal 317: 1318.
Bier V. M. 2001. On the state of the art: Risk communication to the public. Reliability Engineering & System Safety 71: 139–150.
Cummings P. 2009a. The relative merits of risk ratios and odds ratios. Archives of Pediatrics and Adolescent Medicine 163: 438–445.
Cummings P. 2009b. Methods for estimating adjusted risk ratios. Stata Journal 9: 175–196.
Cummings P. 2011. Estimating adjusted risk ratios for matched and unmatched data: An update. Stata Journal 11: 290–298.
Flanders W. D., and Rhodes P. H. 1987. Large sample confidence intervals for regression standardized risks, risk ratios, and risk differences. Journal of Chronic Diseases 40: 697–704.
Greenland S. 1987. Interpretation and choice of effect measures in epidemiologic analyses. American Journal of Epidemiology 125: 761–768.
Greenland S. 2004. Model-based estimation of relative risks and other epidemiologic measures in studies of common outcomes and in case–control studies. American Journal of Epidemiology 160: 301–305.
Greenland S., and Holland P. W. 1991. Estimating standardized risk differences from odds ratios. Biometrics 47: 319–322.
Klaidman S. 1990. How well the media report health risk. Daedalus 119: 119–132.
Kleinman L. C., and Norton E. C. 2009. What's the risk? A simple approach for estimating adjusted risk measures from nonlinear models including logistic regression. Health Services Research 44: 288–302.
Localio A. R., Margolis D. J., and Berlin J. A. 2007. Relative risks and confidence intervals were easily computed indirectly from multivariable logistic regression. Journal of Clinical Epidemiology 60: 874–882.
Spiegelman D., and Hertzmark E. 2005. Easy SAS calculations for risk or prevalence ratios and differences. American Journal of Epidemiology 162: 199–200.
StataCorp. 2011. Stata 12 Base Reference Manual. College Station, TX: Stata Press.
Teuber A. 1990. Justifying risk. Daedalus 119: 235–254.

Cite article

Cite article

Cite article

OR

Download to reference manager

If you have citation software installed, you can download article citation data to the citation manager of your choice

Share options

Share

Share this article

Share with email
EMAIL ARTICLE LINK

Share access to this article

Sharing links are not relevant where the article is open access and not available if you do not have a subscription.

For more information view the Sage Journals article sharing page.

Information, rights and permissions

Information

Published In

Article first published online: September 1, 2013
Issue published: September 2013

Keywords

  1. st0306
  2. adjrr
  3. risk ratio
  4. adjusted risk ratio
  5. risk difference
  6. adjusted risk difference
  7. odds ratio
  8. logistic
  9. logit
  10. probit
  11. multinomial
  12. ordered

Rights and permissions

© 2013 StataCorp LLC.
Request permissions for this article.

History

Published online: September 1, 2013
Issue published: September 2013

Authors

Affiliations

Edward C. Norton
Departments of Health Management & Policy and Economics University of Michigan Ann Arbor, MI
National Bureau of Economic Research
Morgen M. Miller
Departments of Health Management & Policy and Economics University of Michigan Ann Arbor, MI
Lawrence C. Kleinman
Departments of Health Evidence & Policy and Pediatrics Icahn School of Medicine at Mount Sinai New York, NY

Notes

Metrics and citations

Metrics

Journals metrics

This article was published in The Stata Journal: Promoting communications on statistics and Stata.

VIEW ALL JOURNAL METRICS

Article usage*

Total views and downloads: 16128

*Article usage tracking started in December 2016

Articles citing this one

Web of Science: 0

Crossref: 112

  1. The long-term impacts of the Canterbury earthquakes on the mental heal...
    Go to citation Crossref Google Scholar
  2. Working Alone, Limited Restroom Accessibility, and Poor Menstrual Heal...
    Go to citation Crossref Google ScholarPub Med
  3. The coArtHA trial—identifying the most effective treatment strategies ...
    Go to citation Crossref Google Scholar
  4. Using Predictions and Marginal Effects to Compare Groups in Regression...
    Go to citation Crossref Google Scholar
  5. Antiseptic mouthwash for gonorrhoea prevention (OMEGA): a randomised, ...
    Go to citation Crossref Google Scholar
  6. National disparities in colorectal cancer screening in patients with c...
    Go to citation Crossref Google Scholar
  7. Rejection of workers’ compensation claims may increase depressive symp...
    Go to citation Crossref Google Scholar
  8. Placental growth factor testing in the management of late preterm pree...
    Go to citation Crossref Google Scholar
  9. Monoplanar external fixation of comminuted open tibial shaft fractures...
    Go to citation Crossref Google Scholar
  10. Characteristics and Outcomes of US Children and Adolescents With Multi...
    Go to citation Crossref Google Scholar
  11. Lactated Ringers vs Normal Saline Resuscitation for Mild Acute Pancrea...
    Go to citation Crossref Google Scholar
  12. The contribution of employment and working conditions to occupational ...
    Go to citation Crossref Google Scholar
  13. Coronavirus stigmatization and psychological distress among Asians in ...
    Go to citation Crossref Google Scholar
  14. Associations between comorbidities and immediate and one-year outcomes...
    Go to citation Crossref Google Scholar
  15. Gestational weight gain and delivery outcomes: A population‐based coho...
    Go to citation Crossref Google Scholar
  16. County-level Variation in Use of Surgery and Cancer-specific Survival ...
    Go to citation Crossref Google Scholar
  17. Associations between complex multimorbidity, activities of daily livin...
    Go to citation Crossref Google Scholar
  18. Genotype-Informed Versus Empiric Management Of VirEmia (GIVE MOVE): st...
    Go to citation Crossref Google Scholar
  19. Length of hospital stay is associated with a decline in activities of ...
    Go to citation Crossref Google Scholar
  20. Maternal exposure to Wenchuan earthquake and prolonged risk of offspri...
    Go to citation Crossref Google Scholar
  21. Effectiveness of same-day antiretroviral therapy initiation in retenti...
    Go to citation Crossref Google Scholar
  22. Lifestyle behaviors and sun exposure among individuals diagnosed with ...
    Go to citation Crossref Google Scholar
  23. A Multi-Sectoral Approach Improves Early Child Development in a Disadv...
    Go to citation Crossref Google Scholar
  24. Decompositions of the Contribution of Treatment Disparities to Surviva...
    Go to citation Crossref Google Scholar
  25. Risks of adverse perinatal and maternal outcomes among women with hype...
    Go to citation Crossref Google Scholar
  26. Convalescent plasma in the management of moderate covid-19 in adults i...
    Go to citation Crossref Google Scholar
  27. Comparison of Health Outcomes Among High- and Low-Income Adults Aged 5...
    Go to citation Crossref Google Scholar
  28. Disclosure of HIV status among patients new to HIV care in Southern Et...
    Go to citation Crossref Google Scholar
  29. Tyrosine Kinase Inhibitors and the Relationship With Adherence, Costs,...
    Go to citation Crossref Google Scholar
  30. Widespread Pain Is Associated with Increased Risk of No Clinical Impro...
    Go to citation Crossref Google Scholar
  31. Transgender-Related Insurance Denials as Barriers to Transgender Healt...
    Go to citation Crossref Google Scholar
  32. Prevalence of multimorbidity with frailty and associations with socioe...
    Go to citation Crossref Google Scholar
  33. Socioeconomic inequalities in the prevalence of complex multimorbidity...
    Go to citation Crossref Google Scholar
  34. Personalized Ertapenem Prophylaxis for Carriers of Extended-spectrum β...
    Go to citation Crossref Google Scholar
  35. Association between hoof lesions and fertility in lactating Jersey cow...
    Go to citation Crossref Google Scholar
  36. Cost effectiveness of an intervention to increase uptake of hepatitis ...
    Go to citation Crossref Google Scholar
  37. Size and Importance of Socioeconomic Status-Based Disparities in Use o...
    Go to citation Crossref Google Scholar
  38. Association between extremely long working hours and musculoskeletal s...
    Go to citation Crossref Google Scholar
  39. Clinical Trials: Handling the Data
    Go to citation Crossref Google Scholar
  40. Perinatal health of refugee and asylum-seeking women in Sweden 2014–17...
    Go to citation Crossref Google Scholar
  41. Undiagnosed and untreated chronic kidney disease and its impact on ren...
    Go to citation Crossref Google Scholar
  42. Oral Health–Related Quality of Life Among Publicly Insured Mental Heal...
    Go to citation Crossref Google Scholar
  43. Trends in overweight and obesity by socioeconomic status in Year 6 sch...
    Go to citation Crossref Google Scholar
  44. The association between smoking and knee osteoarthritis in a cohort of...
    Go to citation Crossref Google Scholar
  45. Plasma sTNFR1 and IL8 for prognostic enrichment in sepsis trials: a pr...
    Go to citation Crossref Google Scholar
  46. Provision of Insurance Coverage for IVF by a Large Employer and Change...
    Go to citation Crossref Google Scholar
  47. Intra‐cluster Knowledge Exchange and Frequency of Product Innovation i...
    Go to citation Crossref Google Scholar
  48. Effect of Opioid Exposure on Efficacy and Tolerability of Sublingual F...
    Go to citation Crossref Google Scholar
  49. Tyrosine Kinase Inhibitors Initiation, Cost Sharing, and Health Care U...
    Go to citation Crossref Google Scholar
  50. The European epidemic: Pain prevalence and socioeconomic inequalities ...
    Go to citation Crossref Google Scholar
  51. The MedSafer Study: A Controlled Trial of an Electronic Decision Suppo...
    Go to citation Crossref Google Scholar
  52. A General Framework for Comparing Predictions and Marginal Effects acr...
    Go to citation Crossref Google Scholar
  53. Two‐part models for cost with zeros to decompose effects of covariates...
    Go to citation Crossref Google Scholar
  54. Lymph Node Ratio in Pancreatic Adenocarcinoma After Preoperative Chemo...
    Go to citation Crossref Google Scholar
  55. Social & psychological factors associated with oral analgesic use in k...
    Go to citation Crossref Google Scholar
  56. Facility Variation in Local Staging of Rectal Adenocarcinoma and its C...
    Go to citation Crossref Google Scholar
  57. Contribution of maternal overweight and obesity to the occurrence of a...
    Go to citation Crossref Google Scholar
  58. Types of Erythropoietin-Stimulating Agents and Mortality among Patient...
    Go to citation Crossref Google Scholar
  59. Screening Sensitivity According to Breast Cancer Location
    Go to citation Crossref Google ScholarPub Med
  60. Educational inequalities in Global Activity Limitation Indicator disab...
    Go to citation Crossref Google Scholar
  61. Surgeon-Level Variation in Utilization of Local Staging and Neoadjuvan...
    Go to citation Crossref Google Scholar
  62. Disparities in utilization of treatment for clinical stage I-II pancre...
    Go to citation Crossref Google Scholar
  63. Adverse effects of small for gestational age differ by gestational wee...
    Go to citation Crossref Google Scholar
  64. Conundrum of mechanical knee symptoms: signifying feature of a menisca...
    Go to citation Crossref Google Scholar
  65. Association of specific meniscal pathologies and other structural path...
    Go to citation Crossref Google Scholar
  66. Effect of Medication Co-payment Vouchers on P2Y 12 ...
    Go to citation Crossref Google Scholar
  67. Characteristics of Canadians likely to try or increase cannabis use fo...
    Go to citation Crossref Google Scholar
  68. Chronic hypnotic use at 10 years—does the brand matter?
    Go to citation Crossref Google Scholar
  69. Update on the risks of complications after knee arthroscopy
    Go to citation Crossref Google Scholar
  70. Association of osteoarthritis risk factors with knee and hip pain in a...
    Go to citation Crossref Google Scholar
  71. Racial and Ethnic Disparities in the Incidence of Severe Maternal Morb...
    Go to citation Crossref Google Scholar
  72. Association between workplace discrimination and depressive symptoms a...
    Go to citation Crossref Google Scholar
  73. Financial Impact of Breast Cancer in Black Versus White Women
    Go to citation Crossref Google Scholar
  74. Incidence, risk factors, and clinical implications of post-operative d...
    Go to citation Crossref Google Scholar
  75. Prevalence of knee pain, radiographic osteoarthritis and arthroplasty ...
    Go to citation Crossref Google Scholar
  76. Maternal age and offspring developmental vulnerability at age five: A ...
    Go to citation Crossref Google Scholar
  77. Trends in the Prevalence and Disparity in Cognitive Limitations of Ame...
    Go to citation Crossref Google Scholar
  78. Severity of household food insecurity and lifetime racial discriminati...
    Go to citation Crossref Google Scholar
  79. Food insecurity in Denmark—socio-demographic determinants and associat...
    Go to citation Crossref Google Scholar
  80. The Role of Medicare's Inpatient Cost-Sharing in Medicaid Entry
    Go to citation Crossref Google Scholar
  81. Log Odds and the Interpretation of Logit Models
    Go to citation Crossref Google Scholar
  82. Impact of Dual Use of Department of Veterans Affairs and Medicare Part...
    Go to citation Crossref Google Scholar
  83. Prophylactic Cholecystectomy at Time of Surgery for Small Bowel Neuroe...
    Go to citation Crossref Google Scholar
  84. Cesarean delivery rates among family physicians versus obstetricians: ...
    Go to citation Crossref Google Scholar
  85. Human Papillomavirus Vaccination and Pap Smear Uptake Among Young Wome...
    Go to citation Crossref Google Scholar
  86. Codeine Plus Acetaminophen for Pain After Photorefractive Keratectomy:...
    Go to citation Crossref Google Scholar
  87. The Effect of False-positive Mammograms on Antidepressant and Anxiolyt...
    Go to citation Crossref Google Scholar
  88. Association of Condylar Bone Quality with TMJ Osteoarthritis
    Go to citation Crossref Google ScholarPub Med
  89. The Relation of Maternal Birth Weight to African-American and Non-Lati...
    Go to citation Crossref Google Scholar
  90. Gradual stiffness versus magnetic imaging-guided variable stiffness co...
    Go to citation Crossref Google ScholarPub Med
  91. The socioeconomic distribution of non-communicable diseases in Europe:...
    Go to citation Crossref Google Scholar
  92. Occupational inequalities in self-rated health and non-communicable di...
    Go to citation Crossref Google Scholar
  93. The contribution of housing and neighbourhood conditions to educationa...
    Go to citation Crossref Google Scholar
  94. Diabetes-Associated Factors as Predictors of Nursing Home Admission an...
    Go to citation Crossref Google Scholar
  95. Admission plasma levels of the neuronal injury marker neuron-specific ...
    Go to citation Crossref Google Scholar
  96. Comparison of the Tolerability Profile of Controlled-Release Oral Morp...
    Go to citation Crossref Google Scholar
  97. Are Functional and Activity Limitations Becoming More Prevalent among ...
    Go to citation Crossref Google Scholar
  98. The Patient-Centered Medical Home...
    Go to citation Crossref Google ScholarPub Med
  99. Comparison of US and CT on the effect on negative appendectomy and app...
    Go to citation Crossref Google Scholar
  100. Effects of Mother’s Illness and Breastfeeding on Risk of Ebola Virus D...
    Go to citation Crossref Google Scholar
  101. Population Attributable Risk Fractions of Maternal Overweight and Obes...
    Go to citation Crossref Google Scholar
  102. Evaluation of Convalescent Plasma for Ebola Virus Disease in Guinea
    Go to citation Crossref Google Scholar
  103. Widening inequalities in self-rated health by material deprivation? A ...
    Go to citation Crossref Google Scholar
  104. Bidirectional Relationship between the Body Mass Index and Substance U...
    Go to citation Crossref Google ScholarPub Med
  105. Erythropoietin in traumatic brain injury: study protocol for a randomi...
    Go to citation Crossref Google Scholar
  106. The duration of cardiopulmonary resuscitation in emergency departments...
    Go to citation Crossref Google Scholar
  107. Comparison of HPV prevalence between HPV-vaccinated and non-vaccinated...
    Go to citation Crossref Google Scholar
  108. Breast Feeding Is Associated with Postmenopausal Bone Loss: Findings f...
    Go to citation Crossref Google Scholar
  109. Use of a pathway quality improvement care bundle to reduce mortality a...
    Go to citation Crossref Google Scholar
  110. Statistical analysis plan for the Erythropoietin in Traumatic Brain In...
    Go to citation Crossref Google Scholar
  111. Computing risk ratios from data with complex survey design
    Go to citation Crossref Google Scholar
  112. Child Emotional Problems in Non-Traditional Families
    Go to citation Crossref Google Scholar

Figures and tables

Figures & Media

Tables

View Options

View options

PDF/ePub

View PDF/ePub

Get access

Access options

If you have access to journal content via a personal subscription, university, library, employer or society, select from the options below:


Alternatively, view purchase options below:

Purchase 24 hour online access to view and download content.

Access journal content via a DeepDyve subscription or find out more about this option.