I have a weird question and I dunno if this can be answered, but Im looking for info on comparing the speed/efficiency of IML vs. other software like R or Matlab. Trying to convince a colleague that IML performs better than R and looking for existing info. So any resources or ideas would be dope!
An issue with your question is that "performance" depends on
1) What you are trying to accomplish, and
2) How well you program it in each language
In matrix/vector languages, a well-written program will outperform a badly written program. A well-written program will vectorize most operations. For example, you can compare the performance of various operations that use Level-1, Level-2, and Level-3 BLAS (basic linear algebra subroutines).
I have written many blog posts about how to write an efficient program in SAS/IML. Some of them are tagged with a "vectorization" keyword to indicate that the program includes a vectorized step that results in better performance compared to a naive implementation.
Full disclosure: I work at SAS and develop the SAS/IML language. In my opinion, these languages are comparable in terms of performance for many common data analysis tasks, so you might want to use other criteria to guide you.
One last comment: Since the mid 2000s, SAS has supported calling R from a SAS/IML program. Since then, other products in SAS also enable you to call R. In SAS Viya, you can use R to call actions (including the IML action). So the question does not need to be SAS or R. Your solutions can include both SAS and R.
Now I will bow out and let others express their opinions. Good luck!
Thanks for the info and thorough response!
Yeah I know that my question was vague and a little difficult to answer (my bad), partly because I dunno exactly what is out there and cuz Im open to different feedback people may have. Optimally, I wanted an apples-to-apples runtime comparison for common matrix operations, knowing that may be a pipe dream.
So thank you for your feedback, your attempt to answering my question, and your references. I’ve seen your blog and I was wishing that you would chime in because, many a posts you’ve written, I have found useful.
Your comment about calling R from IML is money. It rings a bell but I totally forgot about it and never tried it but that is rad. Truthfully, that alone should be sufficient to convince my colleagues to roll with SAS since thats the best of both worlds. Great that it’s now SAS and R and not SAS or R! More open source integration, the better, IMHO.
SAS is headed back 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.
Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!
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.