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.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 1259 views
  • 1 like
  • 2 in conversation