Calling Functions in the R Language


Call an R Analysis from PROC IML

You can use the techniques in ChapterĀ 10: Submitting SAS Statements, to perform a linear regression by calling a regression procedure (such as REG, GLM, or MIXED) in SAS/STAT software. This section presents examples of submitting statements to R to perform a linear regression. The first example performs a linear regression on data that are transferred from SAS/IML vectors. The second example performs an identical analysis on data that are transferred from a SAS data set.