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.


 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 3162 views
  • 1 like
  • 2 in conversation