Some methods are given here:
https://blogs.sas.com/content/iml/2019/08/07/essential-guide-binning-sas.html
You method does not guarantee equal populations. proc rank is the most used method for your purpose.
Here some code could help.
CFC_SAS_Communities_400x225.jpg
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.