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.
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.
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!
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.
Ready to level-up your skills? Choose your own adventure.