data new dataset;
set Weight ;
else if Weight < 1500 then BirthWeight = "2.2 Very low <1500";
else if Weight < 2500 then BirthWeight = "2.1 Low birth <2500";
else if Weight >= 2500 and BWGT <= 4000 then BirthWeight = "2.3 2500-4000";
This is my code, but I have a small problem with the output.
I want to find values 2.2 <1,500 and 2.1 <2,500. However, it only provides outputs for values <1,500 and for values that are (<2,500 and >1,500). SAS does not give me results when the values overlap. Any help would be greatly appreciated.