BookmarkSubscribeRSS Feed

A SAS Macro to Interface SAS and R

Started ‎05-31-2022 by
Modified ‎05-31-2022 by
Views 1,200

I once had occasion to use SAS and R together to analyze data and report on my findings. I found that switching between the two disparate computing environments manually was cumbersome, so I investigated the possibility of combining SAS and R into a unified platform. The result was a SAS macro, %SUBMIT_R, that would apply R commands to a SAS dataset and essentially replicate the results of the SAS/IML submit/R code block.

 

I have attached the paper describing the use of the %SUBMIT_R macro as well as the macro itself. By using the %SUBMIT_R macro, you can obtain the same results as if you used the SAS/IML submit/R capability.

Comments

Good stuff.  I suspect @rogerjdeangelis will be interested in this approach.

Many thanks, just what I was looking for (as our department has no SAS/IML in their license).

Version history
Last update:
‎05-31-2022 07:31 AM
Updated by:
Contributors

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags