BookmarkSubscribeRSS Feed
K_S
Quartz | Level 8 K_S
Quartz | Level 8

Hi there, 

I have several categorical variables with multiple categories.

For example: has disease x, doesn't have disease x, unknown

I want to get the percentage (prevalence) of each with 95% CIs around the estimates. How do I go about doing this?

Thanks!

 

2 REPLIES 2
FreelanceReinh
Jade | Level 19

Hi @K_S,

 

I remember that this topic was discussed here in 2016: 95% CI for Categorical Variables.

 

In 2017, Rick Wicklin published an even more comprehensive blog post about these confidence intervals: Simultaneous confidence intervals for multinomial proportions.

Reeza
Super User
Each is a proportion, just use the normal approximation to normal (assuming N is large enough) and get a CI that way? You may want a correction factor if you want to limit it to 0 to 100%.

https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_freq_examples04.htm&docsetVersion...

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 880 views
  • 2 likes
  • 3 in conversation