Calling SAS Procedures |
Now that there is a SAS data set on the server containing variables of interest, you can call any SAS procedure to analyze the data. In order to tell the IMLPlus language that you want certain statements to be sent to SAS rather than interpreted as IMLPlus, you must bracket your SAS statements with SUBMIT and ENDSUBMIT statements.
Add the following statements at the bottom of the program window, and select
Program Run from the main menu.
submit; proc reg data=Hurr CORR; model wind_kts = min_pressure; run; endsubmit;
When you run the program, Stat Studio calls the REG procedure with the CORR option. The CORR option prints out the correlation matrix for the variables in the MODEL statement.
The REG procedure displays its tables in the Stat Studio output window
as shown in Figure 4.1.
From the output you can see that the
correlation between these two variables is -0.9336. The R-square
value is 0.8716 for the line of least squares given approximately by
.
![]() |
Figure 4.1: Calling the REG Procedure
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.