I have a continous variable ranging from 0 to 1 and I would like to categorize it into 4 categories. Some of the categories need to be in a range of values so for example I want the categories to be
1 = <0.2
2 = 0.2 - 0.39
3 = 0.4 - 0.59
4 = >= 0.60
Does anyone know how to code this effectively?
Many thanks in advance.
1 = <0.2
2 = 0.2 - 0.39
3 = 0.4 - 0.59
4 = >= 0.60
Does anyone know how to code this effectively?
Many thanks in advance.
Comment