Computing adjusted risk ratios and risk differences in Stata

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.

Issue Date:
Publication Type:
Journal Article
DOI and Other Identifiers:
st0306 (Other)
PURL Identifier:
Published in:
Stata Journal, Volume 13, Number 3
Page range:
Total Pages:

Record appears in:

 Record created 2017-04-01, last modified 2017-04-28

Download fulltext

Rate this document:

Rate this document:
(Not yet reviewed)