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: 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!

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.

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
  • 3 replies
  • 961 views
  • 0 likes
  • 4 in conversation