BookmarkSubscribeRSS Feed
K_S
Obsidian | Level 7 K_S
Obsidian | Level 7

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...

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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