Changing numerical value to categorical

Changing numerical value to categorical

by Hannah Hoban -
Number of replies: 0

Hi Everyone, I am using the NHANES data wanted to change the numerical value for sugar intake, predsug, into a categorical variable. I used the feature statistic and to create a new categorical variable and had problems with the coding so Dr. Scheffler recommend the attached image as a solution. Thought it might be helpful to others. 

Attachment image.png