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!

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!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 646 views
  • 0 likes
  • 1 in conversation