BookmarkSubscribeRSS Feed
nematullah17
Calcite | Level 5

Hi

I have a dataset that has variables such as basketball baseball football swimming chess softball. I want to categorize the various sports under “high” or “low” risk sport under a new variable risklevel; basketball baseball football=high and swimming chess softball=low.

 

dataset looks something like below

     basketball baseball football swimming chess softball

          1              0            0             1              0        1

          1              1            1             0              0        1

          1               0           1            0              1         0

          1               1           0            1              0         1

 

Any help is greatly appreciated!

 

1 REPLY 1
andreas_lds
Jade | Level 19

Not clear how the result should look like, please explain.

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

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 587 views
  • 1 like
  • 2 in conversation