BookmarkSubscribeRSS Feed
Sanscrit_2prov
Obsidian | Level 7

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   

2 REPLIES 2
PeterClemmensen
Super User

@Sanscrit_2prov welcome to the SAS Community 🙂 

 

Can you provide a small example of your problem and where it goes wrong?

Ksharp
Super User

Check GRAYCODE Function  in data step.

I would not think Hash could contain so many combinations. and it must be exploded .

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Multiple Linear Regression in SAS

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.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 2 replies
  • 483 views
  • 0 likes
  • 3 in conversation