BookmarkSubscribeRSS Feed
ssayam
Calcite | Level 5

I have a survey data where participants were allowed to choose multiple responses for a single variable.

For example, which one is your most trusted source for COVID-19 related information? (click all that apply)

  1. Physicians
  2. Govt. health organizations
  3. Friends and family
  4. Social media
  5. TV news

I have created one binary variables for each options with "yes" and "no" responses. So, instead of one variable multiple response variable I now have 5 binary variables. My question is: Is there a way to create a multiple response variable in SAS (like SPSS)? I was able to create a frequency table but how do I make this multiple response variable/ 5 binary variables eligible to be put into a regression analysis?

3 REPLIES 3
Norman21
Lapis Lazuli | Level 10

Welcome to the Community!

 

Here is a very good explanation of how to perform regression with categorical predictors:

 

https://stats.idre.ucla.edu/sas/webbooks/reg/chapter3/regression-with-saschapter-3-regression-with-c...

Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

ballardw
Super User

"Multiple response" and "most trusted" do not belong in the same question. MOST implies a single answer.

The question should have been phrased as a "which sources do you trust". Please do not analyze this question and report any topic as "most" as you haven't enough information to tell unless you have additional information that contained a rank element for the selections.

 

What type of regression do want? This relates to the specific research question(s) you want answered.

 

 

PaigeMiller
Diamond | Level 26

Regression? What are the x-variables (sometimes called independent variables)? What is the y-variable (sometimes called the dependent variable)?

--
Paige Miller

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 993 views
  • 0 likes
  • 4 in conversation