Example: Run a User Analysis from the Main Menu

You can create your own custom analyses by writing an IMLPlus program. An introduction to IMLPlus programming is described in SAS/IML Studio for SAS/STAT Users and in the SAS/IML Studio online Help. You can display the online Help by selecting HelpHelp Topics from the main menu.

When you select AnalysisUser Analysis from the main menu, SAS/IML Studio calls a module called UserAnalysis. SAS/IML Studio distributes a sample UserAnalysis module as an example of the sort of analyses that you can write. You can copy and modify the UserAnalysis module to execute your own IMLPlus programs.

To run the sample UserAnalysis module:

  1. Open the Baseball data set.

  2. Select AnalysisUser Analysis from the main menu, as shown in Figure 33.1.

    Figure 33.1: Running a User Analysis

    Running a User Analysis


    The sample UserAnalysis module displays a simple dialog box that contains a list of analyses that you can run on the data. (See Figure 33.2.) The dialog box displays a list of two analyses.

    Figure 33.2: Selecting from a List of Analyses

    Selecting from a List of Analyses


  3. Select Create Plot Matrix and click OK.

    The Create Plot Matrix analysis demonstrates one way to query information from the person that is running the analysis. In this case, the program prompts you to select several variables to plot. If you select $n$ variables from this list, the variables will be plotted against each other in an $(n-1) \times (n-1)$ lower-triangular array of plots of the pairwise combination of variables.

  4. Hold down the CTRL key and select yr_major, cr_atbat, league, and division, as shown in Figure 33.3. Click OK.

    Figure 33.3: Selecting Variables

    Selecting Variables


    These four variables are plotted in pairwise combinations, as shown in Figure 33.4. Three different plots are created. Mosaic plots display the relationship between pairs of nominal variables. Box plots are used to plot an interval variable against a nominal variable. Scatter plots display the relationship between pairs of interval variables. Windows along the diagonal display variable names and values of each axis.

Figure 33.4: The Results of the Analysis

The Results of the Analysis