Calling Functions in the R Language |
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.
Copyright © SAS Institute, Inc. All Rights Reserved.