BookmarkSubscribeRSS Feed
Missmichelle
Fluorite | Level 6

Hi! 

I am not sure how to phrase my question. So I have a survey data set that I am analyzing. I have a variable that holds the count of how many times a survey participant indicated they "needed" a service. My goal is to create a "needs score" of some sort to categorize the sample in a way so I can have a group who is high, medium, and low need. I also want to cross this needs score with demographics such as race gender age etc, eventually (perhaps some chi-square analysis as well?). How should I go about this? 

 

I would appreciate any suggestions you have!

 

Thank you, 

 

Michelle 

2 REPLIES 2
TomKari
Onyx | Level 15

Hi, Michelle

 

First question, are you planning to do this completely within a tool like Enterprise Guide, or are you comfortable with SAS language programming?

 

Next, we really need to get a bit better idea of what you're dealing with. Please show us what your data looks like, and what your desired result looks like. Use text, not a picture, so we can cut and paste it.

 

Tom

ballardw
Super User

Have you done any distribution analysis (simple Proc Freq to start with) on that raw "need" variable?

 

Of if your survey data comes from a sample that had a complex sample, Proc Survey Freq?

 

I would expect that may give you some idea of where to place break points for categories. If you have a very large range of "need" responses you may want to look at the percentiles as well.

 

Also, you likely would not need to add any variables for the other analysis, create a custom format or two and use the format in the analysis.

The format might look like this:

Proc format library=work;
value needscore
0 - 1 = 'Low'
2 - 5 = 'Medium'
6 - high = 'High'
;
run;

You don't mention anything about actual range of values or number of respondents. I would suggest if you want to have something moderately sensitive when split across race or age groups that you set ranges likely to keep at least 5 if not 10 respondents in each "need" interval.

 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 375 views
  • 0 likes
  • 3 in conversation