BookmarkSubscribeRSS Feed
loloaloha13
Calcite | Level 5

I am currently wanting to analyze survey data. The data is set up in an excel spreadsheet with a merged header, similar to what is seen below.Untitled.png

I want to be able to count how many respondents selected a particular topic, without merging the responses into one variable. For example, if I wanted to count how many respondents said they like Art, in a proc freq, I would get 100% (5/5). But what I really want to see is Art 83.33% (5/6), so it takes into consideration ALL respondents who completed the question. I want to be able to do a proc freq for the variable "Topics" and have it return Art: 5/6, Science: 2/6, History: 2/6, etc.

I know that there is probably an easy solution to my problem, but my brain just isn't thinking that way today!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 0 replies
  • 839 views
  • 0 likes
  • 1 in conversation