Hi:
In SAS IML there is a function called ALLCOMB that can create a matrix of all possible combinations. This is a very helpful function but if the number of combinations is for n=large it doesn't work as well from an efficiency point of view. I was wondering if any one has created hash tables of all possible combinations to improve the efficiency. I know how to either use allcomb or do loops to create a matrix but instead I would like to create a Hash table lookup of the combinations in each row. Thanks
@Sanscrit_2prov welcome to the SAS Community 🙂
Can you provide a small example of your problem and where it goes wrong?
Check GRAYCODE Function in data step.
I would not think Hash could contain so many combinations. and it must be exploded .
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.