LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2005, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 29 Nov 2005 13:32:29 -0800
Reply-To:   Cornel Lencar <clencar@INTERCHANGE.UBC.CA>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Cornel Lencar <clencar@INTERCHANGE.UBC.CA>
Subject:   calculating confidence intervals in proc logistic
Content-Type:   text/plain; charset="us-ascii"

Hi,

I am trying to get an output data set from proc logistic containing the odd ratio estimates and the confidence intervals for them.

The independent variable of interest has 4 classes so 3 of the classes are compared with the benchmark class (in my case the lowest category).

According with SAS documentation, I was able to compute the odds-ratios for the three parameters:

ref_vs_3=round(exp(2*&exposure.3+&exposure.2+&exposure.1),.001);

ref_vs_2=round(exp(&exposure.1+2*&exposure.2+&exposure.3),.001);

ref_vs_1=round(exp(&exposure.3+&exposure.2+2*&exposure.1),.001);

Where exposure3, exposure2, and exposure1 are the coefficients produced by the logistic regression (my values are identical to the ones in the SAS output).

However, I do have problems computing the confidence intervals for these odds ratios.

According to SAS documentation, it would be = exp(coeff_j +/_ z*sqrt (variance_j). And the variance is available in the output when using covout option.

I tried but I am getting totally different results.

Any help would be more than welcomed.

Thank you very much!

Cornel Lencar, MF

Data Analyst

School of Occupational and Environmental Hygiene, UBC

#340-2206 East Mall, Vancouver, BC V6T 1Z4

Phone: 604-822-0839

E-mail: clencar@interchange.ubc.ca


Back to: Top of message | Previous page | Main SAS-L page