![]() |
|
Home Statistical
Software What's
New SAS 8.2
|
Statistical Software > SPSS on OITUNIX > Using the SPSS Manager Introduction to SPSS on OITUNIX - Using the SPSS ManagerSPSS 6.1 has a text-based user interface (called Manager) which enables the you to write, edit and submit SPSS commands, and view results interactively. If you are looking for an interactive interface to SPSS, the Xterminal (Motif) interface is preferable to the SPSS Manager. The only advantage of the Manager is that it doesn't require Xterminal emulation. In order to use the manager, you must make sure your terminal is correctly set up. See Section I. A. Starting SPSS
spss [Enter] You will get a screen with two windows:
------------------------------------------------------------------ SPSS for OSF/1 Release 6.1 University of Massachusetts/AM DEC Alpha OSF/1 For OSF/1 University of Massachusetts SPSS ID 297825 ----------------------------------------------------------------- ---------------------------------------Ins------<ready> -- Input Window The bottom half of the screen is the Input Window. It is blank, ready for you to type in your SPSS commands. The top of the screen is the Output window, where you will see the results of your analysis (or error messages). Begin by typing in the commands to read the minidat.dat data set and run Frequencies and Descriptives. The commands are the same as shown on pages 5-6. You must end each command with a period.
DATA LIST FILE=minidat.dat FIXED/puls1 1-3 puls2 6-8
run 11 smoke 14 sex 17 ht 20-24 wt 27-29 activity 32.
MISSING VALUES puls1,puls2(0)/smoke sex(9)/.
FREQUENCIES VARIABLES=run,smoke, sex, activity.
DESCRIPTIVES VARIABLES=puls1 puls2 ht wt.
Again, we are using UPPER case to show SPSS commands and keywords, and lower case for variable names and other items specific to this example. However, SPSS does not distinguish upper and lower case, so you do not need to be concerned about what case you use, except that filenames must be typed in the correct case. Continuation lines should be indented one or more spaces. B. Editing1. Escape and control key combinations
[CTRL]-A which means press the Control key and hold it down while you press the letter A at the same time. [ESC]A which means press the Escape key, release it, then press A. 2. Mini-menus
3. Editing in the input window
Insert text
Replace text
Delete Text
- or - Place the cursor on the first character of the text to be deleted, and press [CTRL]-D as many times as necessary. Insert Line(s)
Delete Line(s)
and press [Enter]. Cursor Movement
Moving or Copying Blocks
Choose Lines from the mini-menu. Now move the cursor to the last line to be marked, and press [ESC]7 again. All the lines in the block should now be highlighted, so the block is ready for you to move (or copy) it. Put the cursor on the line before where you want the block moved (or copied), and press [ESC]8 to open the Move/Copy mini-menu. Choose Move (or Copy) from the menu. 4. Online manager help
[ESC]1 and choose Manager Help from the mini-menu. C. Running the SPSS commands in the input window
Note that 'Run from cursor' means just that; SPSS will only run the commands beginning with the current cursor position. That is why you had to first move the cursor to the first command line. As the commands are executed, messages will appear in the Output window. If you typed the commands correctly, the Frequencies and Descriptives results will also be in the Output window. If not, you will see some error messages. 1. Switching and zooming windows to look at the output
If you want the window to take up the entire screen, rather
than just half, press [ESC]2 to get the Windows mini-menu,
and choose Zoom. You cannot switch to a different window when
the active window is Zoomed. Press Two additional editing commands are useful for looking at lengthy outputs: 2. Correcting errors
3. Additional statistics
COMPUTE pulsdiff=puls2-puls1. CROSSTABS TABLES=smoke,activity by run/CELLS=COUNT,ROW. MEANS TABLES=pulsdiff BY run BY activity. Since we have already
run the commands in the beginning of the Input window, we do not need
to re-run those; therefore, put the cursor on the COMPUTE command,
then press [ESC]0 and choose Run from Cursor. This will
run just the last three commands. The results of the Crosstabs and
Means will be appended to the previous results in the Output window.
You should save the Input window whenever you expect to need the same or similar commands again. Otherwise, you will need to re-type the commands next time you need them. If you want to get a printed copy of your output, you must save the Output window to a file. E. Ending your SPSS session
F. Printing your output
lpr ofile [Enter]
G. Using an existing command file
will be put into the Input window immediately. e.g. spss infile [Enter] will start the SPSS manager, with the file infile in the Input
window. Or, if you want to bring a file into the Input window after
you've already started SPSS, press [ESC]3. H. Summary of escape and control key sequences
Editing keys
You can get this list of keystrokes on screen by pressing [ESC]1 and choosing Manager Help.
the
previous section of this handout |