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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.