I came across this. I'm not sure if it does the Nelder binning algorithm. https://github.com/friendly/SAS-macros/blob/master/axisspec.sas