The SAS/IML documentation on calling R is at http://support.sas.com/documentation/cdl/en/imlug/64248/HTML/default/viewer.htm#r_toc.htm Other ways to get help include calling SAS Technical Support (it's free) and posting your question to the SAS/IML Discussion forum at http://communities.sas.com/community/sas_iml_and_sas_iml_studio
I'd like to see an example of what you're trying to do, but here are few general ways to do this: 1) Call R in a loop from SAS/IML. At each iteration, generate each matrix or data frame, export it to a SAS matrix or data set, and do the analysis. 2) While the previous option is conceptually easy, it might be more efficient to generate all the data with a single call to R, export it all to SAS, and then use SAS to analyze each subset of the data. I don't usually monitor this R forum, so if you want further details might want to use one of the options in the first paragraph. -- View this message in context: http://r.789695.n4.nabble.com/How-to-use-IML-with-R-and-SAS-tp3954943p3955888.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.