Statistics Output Node - Syntax Tab

Use this tab to create syntax for the SPSS® Statistics procedure you want to use to analyze your data. Syntax is composed of two parts: a statement and associated options. The statement specifies the analysis or operation to be performed and the fields to be used. The options specify everything else, including which statistics to display, derived fields to save, and so on.

SPSS Statistics dialog option

If you are unfamiliar with IBM® SPSS Statistics syntax for a procedure, the simplest way to create syntax in IBM SPSS Modeler is to choose the IBM SPSS Statistics dialog option, select the dialog box for the procedure, complete the dialog box and click OK. Doing so places the syntax onto the Syntax tab of the IBM SPSS Statistics node you are using in IBM SPSS Modeler. You can then run the stream to obtain the output from the procedure.

You can optionally generate a Statistics File source node for importing the resulting data. This is useful, for example, if a procedure writes fields such as scores to the active dataset in addition to displaying output.

Note:
  • When generating output in languages other than English, it is advisable to specify the language in the syntax.
  • The Output Style option is not supported in the Statistics Output node.

To create the syntax

  1. Click the Select a dialog button.
  2. Choose one of the options:
    • Analyze Lists the contents of the SPSS Statistics Analyze menu; choose the procedure you want to use.
    • Other If shown, lists dialogs created by the Custom Dialog Builder in SPSS Statistics, as well as any other SPSS Statistics dialogs that do not appear on the Analyze menu and for which you have a licence. If there are no applicable dialogs, this option is not shown.
Note: The Automatic Data Preparation dialogs are not shown.

If you have an SPSS Statistics custom dialog that creates new fields, these fields cannot be used in SPSS Modeler because the Statistics Output node is a terminal node.

Optionally check the Generate an import node for the resulting data box to create a Statistics File source node that can be used to import the resulting data into another stream. The node is placed on the screen canvas, with the data contained in the .sav file specified in the File field (default location is the SPSS Modeler installation directory).

Syntax editor option

To save syntax that has been created for a frequently used procedure:

  1. Click the File Options button (the first one on the toolbar).
  2. Choose Save or Save As from the menu.
  3. Save the file as an .sps file.

To use previously created syntax files, replacing the current contents, if any, of the Syntax editor:

  1. Click the File Options button (the first one on the toolbar).
  2. Choose Open from the menu.
  3. Select an .sps file to paste its contents into the Output node Syntax tab.

To insert previously saved syntax without replacing the current contents:

  1. Click the File Options button (the first one on the toolbar).
  2. Choose Insert from the menu
  3. Select an .sps file to paste its contents into the Output node at the point specified by the cursor.

Optionally check the Generate an import node for the resulting data box to create a Statistics File source node that can be used to import the resulting data into another stream. The node is placed on the screen canvas, with the data contained in the .sav file specified in the File field (default location is the SPSS Modeler installation directory).

When you click Run, the results are shown in the SPSS Statistics Output Viewer. For more information about the viewer, see the SPSS Statistics documentation.

Note: Syntax for the following items (and their corresponding SPSS Statistics dialog box options) is not supported. They have no impact on the output.
  • OUTPUT ACTIVATE
  • OUTPUT CLOSE
  • OUTPUT DISPLAY
  • OUTPUT EXPORT
  • OUTPUT MODIFY
  • OUTPUT NAME
  • OUTPUT NEW
  • OUTPUT OPEN
  • OUTPUT SAVE