If 10 exactly should go into bucket 2, a slight change is required:
proc format;
value internetuserate_adj
low - < 10 = '1'
10 - < 20 = '2'
20 - < 30 = '3'
30 - < 40 = '4'
40 - < 50 = '5'
50 - < 60 = '6'
60 - < 70 = '7'
70 - < 80 = '8'
80 - < 90 = '9'
90 - 100 = '10';
run;
In general, it's a mistake to make assumptions about what will or won't be in the data. But if you are confident about the values all falling in the range of 0 to 100, that part is your decision.
... View more