data one; input count @@; if _N_ <= 7 then dose=0; if _N_ > 7 and _N_<=14 then dose=.3; if _N_ > 14 and _N_<=21 then dose=1; if _N_ > 21 and _N_<=28 then dose=3; if _N_ > 28 and _N_<=35 then dose=10; cards; 11 14 15 17 18 21 25 39 43 46 50 52 61 67 88 92 104 113 119 120 130 222 251 259 283 299 312 337 562 604 689 702 710 739 786 run; proc print; run;