BookmarkSubscribeRSS Feed
lcmichael_unc
Fluorite | Level 6

I need to report confidence intervals for proportions and proportion differences using the Wilson-score (also called Newcombe) method but I cannot use PROC FREQ because the proportions are output as predicted values from a logistic model. The algebraic algorithm could be incorporated into a data step but it's pretty messy - has anyone already created code to do this. Many thanks.

1 REPLY 1
Reeza
Super User

Paper: https://www.lexjansen.com/sesug/2015/103_Final_PDF.pdf

 

Code:

https://raw.githubusercontent.com/Jiangtang/Programming-SAS/master/CI_Single_Proportion.sas

 


@lcmichael_unc wrote:

I need to report confidence intervals for proportions and proportion differences using the Wilson-score (also called Newcombe) method but I cannot use PROC FREQ because the proportions are output as predicted values from a logistic model. The algebraic algorithm could be incorporated into a data step but it's pretty messy - has anyone already created code to do this. Many thanks.


 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 4128 views
  • 1 like
  • 2 in conversation