Hello,

Would appreciate some help please...
Low 1-2-3-4- are the wanted columns here
I need to generate those 4 variables that return the lowest, second lowest, third lowest and fourth lowest values in IPS_L3 by the group in the first column

Thanks

Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input byte group float(IPS_L3 low1 low2 low3 low4)
1 11 3 6 7 8
1 15 3 6 7 8
1 10 3 6 7 8
1  8 3 6 7 8
1 12 3 6 7 8
1  8 3 6 7 8
1 12 3 6 7 8
1  7 3 6 7 8
1  3 3 6 7 8
1 11 3 6 7 8
1  6 3 6 7 8
end