BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
keldel
Fluorite | Level 6

I would like to compute a 99% confidence interval for the odds ratio based on the likelihood ratio statistic. Here is what I have so far; the output provides a confidence interval for the odds ratio but is this based on the LR statistic?

 

data vaccine2;
input age reaction count;
cards;
65 5 0
65 1 3752
42 5 4
42 1 11301
;
run;
proc freq;
weight count;
tables age*reaction/ cmh chisq BINOMIAL(CL=LIKELIHOODRATIO) alpha=0.01;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
proc freq;
weight count;
tables age*reaction/ cmh chisq oddsratio(cl=LIKELIHOODRATIO) alpha=0.01;
run;

View solution in original post

2 REPLIES 2
tarheel13
Rhodochrosite | Level 12

I'm probably not much help but I do know that you can get profile-likelihood odds ratios out of proc logistic. 

Ksharp
Super User
proc freq;
weight count;
tables age*reaction/ cmh chisq oddsratio(cl=LIKELIHOODRATIO) alpha=0.01;
run;

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 781 views
  • 2 likes
  • 3 in conversation