GLM Analysis Syntax Editor
Select Analysis syntax editor in the Specification method list on the GLM Startup Panel - Quick tab. Then click the OK button in the GLM Startup Panel to display the GLM Analysis Syntax Editor dialog. This dialog contains two tabs: Keywords and Specifications. On these tabs, you can click on the respective buttons to insert the keywords in the Analysis syntax edit field, at the current location of the cursor. The available keywords and specifications can also be typed directly into the Analysis syntax edit field. Note that this dialog will also be displayed when you click the Syntax editor button in the GLM Quick Specs dialog or the GLM Analysis Wizard Extended Options dialogs.
Element Name | Description |
---|---|
Analysis syntax | Enter command syntax into the Analysis syntax edit field to completely specify the design, as well as various parameters that are used in the computations. |
OK (Run) | Click the OK (Run) button to begin the computations and display the GLM Results dialog. |
Cancel | Click the Cancel button to return to the General Linear Models (GLM) Startup Panel, ignoring any changes that you have made on this dialog. |
< Back | Click the < Back button to move back to the GLM Quick Specs dialog or the GLM Analysis Wizard Extended Options dialog (depending on the manner in which the GLM Analysis Syntax Editor dialog was displayed). Note that when you click the < Back button on the GLM Analysis Syntax Editor dialog after introducing additional customizations, the customizations specified in the GLM Analysis Syntax Editor dialog will not be translated "back" to the Quick specs dialog or the Analysis Wizard dialogs. |
Syntax: STATISTICA vs. SAS. | GLM supports two general syntax conventions. Select the STATISTICA option button to use STATISTICA (GLM) syntax. The STATISTICA syntax is a modern, easy to use, and comprehensive design specification language based on meaningful plain English language command sequences of the form Keyword = Specifications (see the description of keywords and specifications on the
Keywords tab and
Specifications tab). This flexible command syntax allows you to use the full functionality of GLM.
Select the SAS option button to use SAS syntax. SAS is based on the still popular SAS command syntax, which dates back to the early 1970s and was originally designed for mainframe computers. Support for the SAS command syntax is provided here for compatibility purposes to facilitate the transition from the SAS system, and for accommodating those who want to use published examples. Note that using this syntax convention will not give you full access to all features available in GLM since many of them are not supported in the respective SAS procedures. The type of syntax expected by the syntax interpreter is independent of the setting of the respective Syntax option buttons; instead, STATISTICA will look for the SAS keywords Class or Model, and if found at the beginning of the text in the Analysis syntax edit field, will apply the SAS syntax conventions. Consequently, the SAS and STATISTICA syntax conventions cannot be combined. Overviews and examples are available for both STATISTICA and SAS syntax. See GLM (STATISTICA) Syntax Overview, GLM (STATISTICA) Syntax Examples, SAS Syntax Overview, and SAS Syntax Examples for further details. |
Options | Click the Options button to display the Options menu. |
Cut, Copy, Paste | Use the standard Cut, Copy, and Paste editing operations in the Analysis syntax edit field; these operations can be accessed by clicking on the respective buttons, or via the standard keyboard shortcuts. For details, refer to the description of the Edit menu. |
Open | Click the Open button to display the standard Open Syntax dialog, which is used to open previously saved text (program syntax) files. |
Save As | Click the Save As button to display the standard Save Syntax dialog, which is used to save the current Analysis syntax to a text file. Those text files can be edited by practically all text editing and word processing programs.
Note: using Quick specs dialog to write the syntax. In practically all cases, the most efficient way to write GLM syntax is via the GLM Quick Specs dialog. Specifically, from the GLM Startup Panel - Quick tab, select the desired design in the Type of analysis list, and Quick Specs dialog as the Specification method; then click OK in the Startup Panel to display the respective GLM Quick Specs dialog. Select your design via the GLM Quick Specs dialog and then click the Syntax Editor button on the GLM Quick Specs dialog. All current specifications (e.g., variable selections, design specifications) selected on the GLM Quick Specs dialog will automatically be transferred (translated) to the syntax editor, and can be further modified or saved. Note: when selecting a Type of analysis, it is not necessary that your design matches exactly the chosen type of design. For example, if you want to exclude certain effects from a
factorial ANOVA design, choose Factorial ANOVA from the
GLM Startup Panel - Quick tab, specify the full factorial design, and then on the
GLM Quick Specs dialog click the Syntax editor button. The syntax for the full factorial design (as specified in the GLM Quick Specs dialog) will be written out to the syntax editor, and you can now modify the
DESIGN statement to customize the design (e.g., to drop effects).
See GLM (STATISTICA) Syntax Overview and GLM (STATISTICA) Syntax Examples for further details. |