Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The LOGISTIC Procedure

Odds Ratio Estimation

Consider a dichotomous response variable with outcomes event and nonevent. Consider a dichotomous risk factor variable X that takes the value 1 if the risk factor is present and 0 if the risk factor is absent. According to the logistic model, the log odds function, g(X), is given by

g(X) \equiv \log \biggl(\frac{\Pr(event | X)}
 {\Pr(nonevent | X)} \biggr)
 = \beta_0 + \beta_1 X \

The odds ratio \psi is defined as the ratio of the odds for those with the risk factor (X=1) to the odds for those without the risk factor (X=0). The log of the odds ratio is given by

\log(\psi) \equiv \log(\psi(X=1,X=0)) = g(X=1) - g(X=0) = \beta_1

The parameter, \beta_1, associated with X represents the change in the log odds from X = 0 to X = 1. So, the odds ratio is obtained by simply exponentiating the value of the parameter associated with the risk factor. The odds ratio indicates how the odds of event change as you change X from 0 to 1. For instance, \psi=2 means that the odds of an event when X=1 are twice the odds of an event when X=0.

Suppose the values of the dichotomous risk factor are coded as constants a and b instead of 0 and 1. The odds when X = a become \exp(\beta_0 + a \beta_1), and the odds when X = b become \exp(\beta_0 + b \beta_1). The odds ratio corresponding to an increase in X from a to b is

\psi = \exp[(b - a) \beta_1] = [\exp(\beta_1)]^{b-a} \equiv
 [\exp(\beta_1)]^c
Note that for any a and b such that c=b-a=1, \psi=\exp(\beta_1).So the odds ratio can be interpreted as the change in the odds for any increase of one unit in the corresponding risk factor. However, the change in odds for some amount other than one unit is often of greater interest. For example, a change of one pound in body weight may be too small to be considered important, while a change of 10 pounds may be more meaningful. The odds ratio for a change in X from a to b is estimated by raising the odds ratio estimate for a unit change in X to the power of c=b-a as shown previously.

For a polytomous risk factor, the computation of odds ratios depends on how the risk factor is parameterized. For illustration, suppose that Race is a risk factor with four categories: White, Black, Hispanic, and Other.

For the effect parameterization scheme (PARAM=EFFECT) with White as the reference group, the design variables for Race are as follows.

  Design Variables
Race X1 X2 X3
Black100
Hispanic010
Other001
White-1-1-1

The log odds for Black is

g(Black) &=& \beta_0 + \beta_1 (X_1=1) + \beta_2 (X_2=0) + \beta_3
 (X_3=0) \ &=& \beta_0 + \beta_1

The log odds for White is

g(White) &=& \beta_0 + \beta_1 (X_1=-1) +
 \beta_2 (X_2=-1)+ \beta_3 (X_3=-1)) \ &=& \beta_0 - \beta_1 - \beta_2 - \beta_3

Therefore, the log odds ratio of Black versus White becomes

\log(\psi(Black,White)) &=& g(Black) - g(White) \ &=& 2 \beta_1 + \beta_2 + \beta_3

For the reference cell parameterization scheme (PARAM=REF) with White as the reference cell, the design variables for race are as follows.

  Design Variables
Race X1 X2 X3
Black100
Hispanic010
Other001
White000

The log odds ratio of Black versus White is given by

eqn{\log(\psi(Black,White))} \& = & g(Black) - g(White) \ & = & (\beta_0 + \beta...
 ...(\beta_0 + \beta_1 (X_1=0) +
 \beta_2 (X_2=0) + \beta_3 (X_3=0)) \ & = & \beta_1

For the GLM parameterization scheme (PARAM=GLM), the design variables are as follows.

  Design Variables
Race X1 X2 X3 X4
Black1000
Hispanic0100
Other0010
White0001

The log odds ratio of Black versus White is

eqn{\log(\psi(Black,White))} \ & = & g(Black) - g(White) \ & = & (\beta_0 + \bet...
 ...1 (X_1=0) +
 \beta_2 (X_2=0) + \beta_3 (X_3=0) + \beta_4(X_4=0)) \ & = & \beta_1

Consider the hypothetical example of heart disease among race in Hosmer and Lemeshow (1989, p 44). The entries in the following contingency table represent counts.

 Race
Disease StatusWhiteBlackHispanicOther
Present5201510
Absent20101010

The computation of odds ratio of Black versus White for various parameterization schemes is tabulated in the following table.

Odds Ratio of Heart Disease Comparing Black to White
 Parameter Estimates 
PARAM\hat{\beta_1}\hat{\beta_2}\hat{\beta_3}\hat{\beta_4}Odds Ratio Estimation
EFFECT0.76510.47740.0719 exp(2 ×0.7651 + 0.4774 + 0.0719) = 8
REF2.07941.79171.3863 exp(2.0794) = 8
GLM2.07941.79171.38630.0000exp(2.0794) = 8

Since the log odds ratio (\log(\psi)) is a linear function of the parameters, the Wald confidence interval for \log(\psi) can be derived from the parameter estimates and the estimated covariance matrix. Confidence intervals for the odds ratios are obtained by exponentiating the corresponding confidence intervals for the log odd ratios. In the displayed output of PROC LOGISTIC, the "Odds Ratio Estimates" table contains the odds ratio estimates and the corresponding 95% Wald confidence intervals. For continuous explanatory variables, these odds ratios correspond to a unit increase in the risk factors.

To customize odds ratios for specific units of change for a continuous risk factor, you can use the UNITS statement to specify a list of relevant units for each explanatory variable in the model. Estimates of these customized odds ratios are given in a separate table. Let (Lj,Uj) be a confidence interval for \log(\psi). The corresponding lower and upper confidence limits for the customized odds ratio \exp(c\beta_j)are exp[cLj] and exp[cUj], respectively (for c>0), or exp[cUj] and exp[cLj], respectively (for c<0). You use the CLODDS= option to request the confidence intervals for the odds ratios.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.