1 / 11

9/18/2014

Using SPSS Syntax/Script Files - 1. In order to run my SPSS Python syntax files on your computer, you will need to install: Python 2.5 which comes on the SPSS installation disk;

cissy
Download Presentation

9/18/2014

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using SPSS Syntax/Script Files - 1 • In order to run my SPSS Python syntax files on your computer, you will need to install: • Python 2.5 which comes on the SPSS installation disk; • the SPSS 17.0 for Windows Python Plug-in which should also be on the installation disk (be sure you match the version of the Plug-in to the version of SPSS (PASW). • Accept the default installation for all programs The link to SPSS Script and Syntax Files is on the Course Materials web page. 9/18/2014 Slide 1

  2. Using SPSS Syntax/Script Files - 2 Right click on the link to the file HistogramBoxplot.sps and select Save Link As from the popup menu. 9/18/2014 Slide 2

  3. Using SPSS Syntax/Script Files - 3 With a data set already open in SPSS, select the Open > Syntax command from the File menu. 9/18/2014 Slide 3

  4. Using SPSS Syntax/Script Files - 4 Open the file which you just downloaded to your computer. 9/18/2014 Slide 4

  5. Using SPSS Syntax/Script Files - 5 With the program file open, select All from the Run menu. The text in the program file will flash blue and the commands will be processed by SPSS. 9/18/2014 Slide 5

  6. Using SPSS Syntax/Script Files - 6 When the syntax file is run, two things happen. First, the commands in the syntax file are written to the Log in the Output viewer. This can be useful if an error occurs, but most of the time it is a nuisance. I will show you how to turn this off at the end of this power point. Second, a dialog box appears in which you will specify the output you want. Highlight the variable you want to analyze, mark one of the options for re-expression if desired, and click on the Run button. 9/18/2014 Slide 6

  7. Using SPSS Syntax/Script Files - 7 The program file will produce a table of descriptive statistics to use in describing the distribution. 9/18/2014 Slide 7

  8. Using SPSS Syntax/Script Files - 8 The program file will produce a histogram overlaid with a normal curve and a boxplot. 9/18/2014 Slide 8

  9. Using SPSS Syntax/Script Files - 9 The dialog box should stay available until you close it. To produce more output, select new options and click on the Run button. To close the dialog, click on the red close box at the top of the dialog. 9/18/2014 Slide 9

  10. Stopping Printing Commands to Log File - 1 To eliminate printing of syntax commands in the log file, select Options from the Edit menu. Note this will turn off All printing of commands to the log file, whether they are issued through the menus or through syntax files. 9/18/2014 Slide 10

  11. Stopping Printing Commands to Log File - 2 First, click on the Viewer tab to select it. Second, clear the checkbox Display commands in the log. Third, click on the Apply button to apply the option, and click on the OK button to close the dialog. 9/18/2014 Slide 11

More Related