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
Information, rights and permissions
Information
Published In

Article first published online: September 1, 2013
Issue published: September 2013
Keywords
History
Published online: September 1, 2013
Issue published: September 2013
Authors
Metrics and citations
Metrics
Journals metrics
This article was published in The Stata Journal: Promoting communications on statistics and Stata.
VIEW ALL JOURNAL METRICSArticle usage*
Total views and downloads: 16128
*Article usage tracking started in December 2016
Articles citing this one
Web of Science: 0
Crossref: 112
- The long-term impacts of the Canterbury earthquakes on the mental heal...
- Working Alone, Limited Restroom Accessibility, and Poor Menstrual Heal...
- The coArtHA trial—identifying the most effective treatment strategies ...
- Using Predictions and Marginal Effects to Compare Groups in Regression...
- Antiseptic mouthwash for gonorrhoea prevention (OMEGA): a randomised, ...
- National disparities in colorectal cancer screening in patients with c...
- Rejection of workers’ compensation claims may increase depressive symp...
- Placental growth factor testing in the management of late preterm pree...
- Monoplanar external fixation of comminuted open tibial shaft fractures...
- Characteristics and Outcomes of US Children and Adolescents With Multi...
- Lactated Ringers vs Normal Saline Resuscitation for Mild Acute Pancrea...
- The contribution of employment and working conditions to occupational ...
- Coronavirus stigmatization and psychological distress among Asians in ...
- Associations between comorbidities and immediate and one-year outcomes...
- Gestational weight gain and delivery outcomes: A population‐based coho...
- County-level Variation in Use of Surgery and Cancer-specific Survival ...
- Associations between complex multimorbidity, activities of daily livin...
- Genotype-Informed Versus Empiric Management Of VirEmia (GIVE MOVE): st...
- Length of hospital stay is associated with a decline in activities of ...
- Maternal exposure to Wenchuan earthquake and prolonged risk of offspri...
- Effectiveness of same-day antiretroviral therapy initiation in retenti...
- Lifestyle behaviors and sun exposure among individuals diagnosed with ...
- A Multi-Sectoral Approach Improves Early Child Development in a Disadv...
- Decompositions of the Contribution of Treatment Disparities to Surviva...
- Risks of adverse perinatal and maternal outcomes among women with hype...
- Convalescent plasma in the management of moderate covid-19 in adults i...
- Comparison of Health Outcomes Among High- and Low-Income Adults Aged 5...
- Disclosure of HIV status among patients new to HIV care in Southern Et...
- Tyrosine Kinase Inhibitors and the Relationship With Adherence, Costs,...
- Widespread Pain Is Associated with Increased Risk of No Clinical Impro...
- Transgender-Related Insurance Denials as Barriers to Transgender Healt...
- Prevalence of multimorbidity with frailty and associations with socioe...
- Socioeconomic inequalities in the prevalence of complex multimorbidity...
- Personalized Ertapenem Prophylaxis for Carriers of Extended-spectrum β...
- Association between hoof lesions and fertility in lactating Jersey cow...
- Cost effectiveness of an intervention to increase uptake of hepatitis ...
- Size and Importance of Socioeconomic Status-Based Disparities in Use o...
- Association between extremely long working hours and musculoskeletal s...
- Clinical Trials: Handling the Data
- Perinatal health of refugee and asylum-seeking women in Sweden 2014–17...
- Undiagnosed and untreated chronic kidney disease and its impact on ren...
- Oral Health–Related Quality of Life Among Publicly Insured Mental Heal...
- Trends in overweight and obesity by socioeconomic status in Year 6 sch...
- The association between smoking and knee osteoarthritis in a cohort of...
- Plasma sTNFR1 and IL8 for prognostic enrichment in sepsis trials: a pr...
- Provision of Insurance Coverage for IVF by a Large Employer and Change...
- Intra‐cluster Knowledge Exchange and Frequency of Product Innovation i...
- Effect of Opioid Exposure on Efficacy and Tolerability of Sublingual F...
- Tyrosine Kinase Inhibitors Initiation, Cost Sharing, and Health Care U...
- The European epidemic: Pain prevalence and socioeconomic inequalities ...
- The MedSafer Study: A Controlled Trial of an Electronic Decision Suppo...
- A General Framework for Comparing Predictions and Marginal Effects acr...
- Two‐part models for cost with zeros to decompose effects of covariates...
- Lymph Node Ratio in Pancreatic Adenocarcinoma After Preoperative Chemo...
- Social & psychological factors associated with oral analgesic use in k...
- Facility Variation in Local Staging of Rectal Adenocarcinoma and its C...
- Contribution of maternal overweight and obesity to the occurrence of a...
- Types of Erythropoietin-Stimulating Agents and Mortality among Patient...
- Screening Sensitivity According to Breast Cancer Location
- Educational inequalities in Global Activity Limitation Indicator disab...
- Surgeon-Level Variation in Utilization of Local Staging and Neoadjuvan...
- Disparities in utilization of treatment for clinical stage I-II pancre...
- Adverse effects of small for gestational age differ by gestational wee...
- Conundrum of mechanical knee symptoms: signifying feature of a menisca...
- Association of specific meniscal pathologies and other structural path...
- Effect of Medication Co-payment Vouchers on P2Y 12 ...
- Characteristics of Canadians likely to try or increase cannabis use fo...
- Chronic hypnotic use at 10 years—does the brand matter?
- Update on the risks of complications after knee arthroscopy
- Association of osteoarthritis risk factors with knee and hip pain in a...
- Racial and Ethnic Disparities in the Incidence of Severe Maternal Morb...
- Association between workplace discrimination and depressive symptoms a...
- Financial Impact of Breast Cancer in Black Versus White Women
- Incidence, risk factors, and clinical implications of post-operative d...
- Prevalence of knee pain, radiographic osteoarthritis and arthroplasty ...
- Maternal age and offspring developmental vulnerability at age five: A ...
- Trends in the Prevalence and Disparity in Cognitive Limitations of Ame...
- Severity of household food insecurity and lifetime racial discriminati...
- Food insecurity in Denmark—socio-demographic determinants and associat...
- The Role of Medicare's Inpatient Cost-Sharing in Medicaid Entry
- Log Odds and the Interpretation of Logit Models
- Impact of Dual Use of Department of Veterans Affairs and Medicare Part...
- Prophylactic Cholecystectomy at Time of Surgery for Small Bowel Neuroe...
- Cesarean delivery rates among family physicians versus obstetricians: ...
- Human Papillomavirus Vaccination and Pap Smear Uptake Among Young Wome...
- Codeine Plus Acetaminophen for Pain After Photorefractive Keratectomy:...
- The Effect of False-positive Mammograms on Antidepressant and Anxiolyt...
- Association of Condylar Bone Quality with TMJ Osteoarthritis
- The Relation of Maternal Birth Weight to African-American and Non-Lati...
- Gradual stiffness versus magnetic imaging-guided variable stiffness co...
- The socioeconomic distribution of non-communicable diseases in Europe:...
- Occupational inequalities in self-rated health and non-communicable di...
- The contribution of housing and neighbourhood conditions to educationa...
- Diabetes-Associated Factors as Predictors of Nursing Home Admission an...
- Admission plasma levels of the neuronal injury marker neuron-specific ...
- Comparison of the Tolerability Profile of Controlled-Release Oral Morp...
- Are Functional and Activity Limitations Becoming More Prevalent among ...
- The Patient-Centered Medical Home...
- Comparison of US and CT on the effect on negative appendectomy and app...
- Effects of Mother’s Illness and Breastfeeding on Risk of Ebola Virus D...
- Population Attributable Risk Fractions of Maternal Overweight and Obes...
- Evaluation of Convalescent Plasma for Ebola Virus Disease in Guinea
- Widening inequalities in self-rated health by material deprivation? A ...
- Bidirectional Relationship between the Body Mass Index and Substance U...
- Erythropoietin in traumatic brain injury: study protocol for a randomi...
- The duration of cardiopulmonary resuscitation in emergency departments...
- Comparison of HPV prevalence between HPV-vaccinated and non-vaccinated...
- Breast Feeding Is Associated with Postmenopausal Bone Loss: Findings f...
- Use of a pathway quality improvement care bundle to reduce mortality a...
- Statistical analysis plan for the Erythropoietin in Traumatic Brain In...
- Computing risk ratios from data with complex survey design
- Child Emotional Problems in Non-Traditional Families
Figures and tables
Figures & Media
Tables
View Options
View options
PDF/ePub
View PDF/ePubGet access
Access options
If you have access to journal content via a personal subscription, university, library, employer or society, select from the options below:
loading institutional access options
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.