Previous Page | Next Page

Calling SAS Procedures

Calling a Procedure

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 \blacktriangleright\,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 {\rm wind\_kts} = 1333 - 1.291 x {\rm min\_pressure}.

statproc0.png (58020 bytes)

Figure 4.1: Calling the REG Procedure

Previous Page | Next Page | Top of Page