-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-basics.qmd
702 lines (522 loc) · 25.9 KB
/
01-basics.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
# The Basics of SPSS
## What does SPSS Stand For?
- Originally, SPSS stood for Statistical Package for the Social
Sciences.
- Now, it stands for Statistical Product and Service Solutions.
- SPSS has also been known as "PASW" which stands for Predictive
Analytics Software.
## SPSS Compared to Other Statistical Software Packages
We can think of statistical software packages on a spectrum organized by
difficulty and complexity. On one end we have Excel which is easy and familiar
to most people. On the other end we have C++ which is difficult and unfamiliar.
All software packages are somewhere in between. SPSS is closer to the Excel end
of the spectrum which makes it convenient to use. SPSS builds on what you
already know from Excel, which makes the transition from Excel to a more
powerful statistical software package easier.
**Easiest:** Excel
SPSS
Minitab
JMP
Stata,SAS
R/S-Plus
Matlab
**Hardest:** C++
SPSS requires that data, code, and output are in separate places, unlike Excel.
These differences seem big at first, but they are a small price to pay for the
additional data management, graphical, and statistical capabilities that SPSS
will give you over Excel. While SPSS seems to be more restrictive than Excel,
the restrictions it sets ensure that your data set is ready for statistical
analysis.
## The Three Parts of SPSS
There are three parts to SPSS, each with its own window: Data Editor, Output
Viewer, and Syntax Window. The sections below describe each of these parts in
detail.
- Data Editor Enter and View Data Values, files end in .sav or.por
- Output Viewer View Statistical Results, files end in .spv
- Syntax Window Write & Run Syntax Command, files end in .sps
### Data Editor
The Data Editor is visible when SPSS starts up. There are two views of the Data
Editor: Data View and Variable View. In Data View, each row represents one case
(e.g., one survey respondent), while each column represents one variable (one
piece of information, e.g. age). By using the scroll bars to go up and down, you
can examine any case in the sample. By using the scroll bars to go right and
left, you can see any variable.
The first step in an SPSS session is to open a data file or start entering data
in a new data file. A data file is a binary file ending in the extension .sav or
.por, which contains a given data set. Any requested statistics or analyses that
are performed pertain to this data set.
#### Open a Data File
To open a data file, go to "File" at the upper left of the menu bar. Click
"Open" then "Data". Locate the file that you want to open and double-click on
it.
**Try it: Open [exercise0_data.sav](data/exercise0/exercise0_data.sav)**
[![](./media/spss-image2.png){width="6.497396106736658in" height="3.8020833333333335in"}](./media/spss-image2.png){target="_blank"}
[![](./media/spss-image3.png){width="6.497395013123359in" height="4.052083333333333in"}](./media/spss-image3.png){target="_blank"}
***Start a New Data File***
To start a new data file, go to "File" at the upper left of the menu bar. Click
"New" then "Data".
### Output Viewer
The output viewer is a window where any statistical results, including
tables or graphs, can be viewed. The output window does not appear until
the first time SPSS is asked to provide some sort of results. The output
viewer will also record the syntax used to generate the results.
**Try it: Open [exercise0_output.spv](data/exercise0/exercise0_output.spv)**
[![](./media/spss-image4.png){width="6.5in" height="5.2in"} ](./media/spss-image4.png){target="_blank"}
The output viewer is divided into two parts: on the left, a narrow
window shows an outline which organizes all the results. The outline can
be used to delete certain portions of the output, rearrange pieces of
the output, jump to specific results, and temporarily hide (or make
visible) certain parts of the output. More on this later.
The actual results themselves are in the larger window to the right.
When printing the output, only the information in this window is
printed. Once the viewer has been opened, it will remain open even if
all the output is deleted and the output window is empty.
Occasionally the results from a procedure will be quite lengthy, and
only the first portion will appear in the window. In these cases, a
small red triangle pointing down will appear at the bottom of this
visible portion. To see those results in their entirety, double-click on
that section of output. Scroll bars will appear which pertain to that
piece of output; scroll down to see the remainder.
#### Labels in Output
Variable labels and value labels will be used in place of the actual
variable names or values, by default. This can be changed under the
Edit -> Options -> Output tab. SPSS can display labels only, the actual names
or values only, or both.
#### Tables & Charts
Results are commonly presented in the output viewer in table form or
chart (graph) form. To edit a table, double-click on that table
(anywhere will do). An editing window is set up around that table,
indicated by a rough gray outline. New menus appear in the menu bar at
the top. Once this editing mode is begun, double-clicking in any cell in
a table will allow you to change the names, labels, or values in those
cells.
**Helpful Hint:** To remove scientific notation in a table, double-click
on the table and highlight the columns or rows containing the notation.
Under Format -> Cell Properties and select a new numeric format, such
as \#,\#\#\#.\#\#. The number of decimal places can be increased or
decreased here as well.
Editing a chart is similar to editing a table. Begin by double-clicking
anywhere on the chart and the Chart Editor window will appear. Once in
the Chart Editor, many things can be altered simply by double-clicking
and changing fields in the dialogue boxes which appear.
**Try it: Double click on the Descriptive Statistics table for the
salary variable. Change the Std. Deviation to have only two digits to
the right of the decimal point.**
[![](./media/spss-image5.png){width="6.497396106736658in" height="4.479166666666667in"}](./media/spss-image5.png){target="_blank"}
#### Export Output
You can save the output file for future use or to send to colleagues. In
order to open a SPSS output file, your computer must have SPSS.
Sometimes it is useful to export the information from your output file
into another format, such as Microsoft Excel or Microsoft Word. Excel is
a great platform to export to---tables turn out very nicely. To export,
select File -> Export and the export wizard will appear. Select the
file type and the location to save the file, then select "OK".
**Try it: Export the output table as an Excel file and investigate the
Excel file.**
[![](./media/spss-image6.png){width="6.5in" height="5.200694444444444in"} ](./media/spss-image6.png){target="_blank"}
Starting with SPSS Version 11.5, selected output objects, such as charts
and tables, can also be exported in an Excel or Word format. This is a
very useful feature that can be used to export selected tables from the
Output Viewer into an Excel format, for additional work such as creation
of custom graphs. To export charts, select the charts in the output
window by clicking once on them, and then go to File -> Export and select
"Selected" where it asks what objects to export. Choose the "html" file
type for charts, and under the Graphics portion of the dialogue box a
drop down menu allows one to access the various types of image files
available. The bitmap image format is one option. Although these images
are somewhat large in terms of kilobytes, they can be read by a great
many programs, including Word, Power Point and others.
One last option for exporting SPSS output is to copy and paste all
output into a Word file. The steps are as follows:
- Click once to select the piece(s) of output to move.
- Go to Edit -> Copy, press the short-cut ctrl-C, or right-click and
select "Copy").
- In Word, place the cursor where the output will go.
- Under "Edit", click "Paste", or use the short-cut ctrl-V.
You can then resize and move around the pasted objects in Word. The same
process outlined above should work for other Microsoft programs, such as
Power Point or Excel. While pasted objects can be edited in theory, this
is usually difficult. It is best to do all editing in SPSS before
pasting to Word.
### Syntax Window
The Syntax Window looks like the Output Viewer, but it is a text editing
window in which SPSS commands can be written out by hand. It allows
users to type commands in the right-hand side window rather than use
menus. Commands executed using written code are no different from
commands executed using the pull-down menus and dialogue boxes. There
are some rare instances when something is available only by writing
syntax, and cannot be found in any menu.
The syntax window provides these advantages:
- It allows a user to do repetitive tasks more quickly, using copy &
paste.
- It provides a written record of data management and analyses
performed.
- It can be sent to other SPSS users to help in setting up data files
or to re-create your analyses.
**Try it: Open [exercise0_syntax.sps](data/exercise0/exercise0_syntax.sps)** (Right-click & Save-as)
[![](./media/spss-image7.png){width="6.5in" height="5.2in"} ](./media/spss-image7.png){target="_blank"}
You can generate syntax in a few different ways:
- Write out the syntax by hand.
- Use the "Paste" button inside a dialogue box.
- Copy and paste the syntax from the output viewer.
The "Paste" button in dialogue boxes causes the written syntax
equivalent of a command to be entered into the syntax window. A new
syntax window will open if no syntax window was open previously.
#### Run Syntax
To run commands in the syntax window, highlight the commands of interest
and go to Run -> Selection. Alternatively, you can click on the toolbar
button that looks like a "Play" symbol on a CD player or press ctrl-R as
a short-cut. You can also run all commands in the syntax window by using
Run -> All.
**Try it: In the Syntax Window, highlight number 3 and run the selection
highlighted below. Check the Output Viewer.**
[![](./media/spss-image8.png){width="6.497395013123359in" height="4.041666666666667in"}](./media/spss-image8.png){target="_blank"}
*Repetitive Commands*
As a simple example of repetitive commands, consider a user who needs to
take logs of thirty different variables. To go through the menus and do
thirty computations would be quite time-consuming. This is a case where
using syntax would be easier, because cut, copy, and paste commands are
available in the Syntax Window. If you pasted one such computation
command to the syntax window, you could then copy the command out thirty
times. You would only need to edit the variable names in each line.
The steps for using syntax for repetitive commands are:
- Paste one example command into the syntax window.
- Copy this command by highlighting it and typing ctrl-C or by right
clicking and copying.
- Paste the command repeatedly using ctrl-V or right clicking and
pasting.
- Edit each line by changing the variable names.
- Run the commands!
Once again, the cut, copy, and paste commands have these short-cuts:
- Cut ctrl-X
- Copy ctrl-C
- Paste ctrl-V
**Helpful Hint:** If you want to start setting up a data set, by
formatting variables, recoding, etc., you can begin before you receive
all the data. Test your data management commands on the cases you do
have, and save the syntax file. When you receive the final data
delivery, you can re-run the syntax one last time and be ready to go!
**Try it: Highlight Number 5, copy and paste the syntax. Modify the
syntax such that VARIABLES=salbegin.**
[![](./media/spss-image9.png){width="6.5in" height="5.2in"} ](./media/spss-image9.png){target="_blank"}
#### Reading in Raw Data with Syntax
Reading in raw data files is another common use of the syntax window.
Many organizations will provide large, publicly available data sets by
distributing the raw data and a SPSS syntax file which reads in and
formats that data. If you receive a raw data file and a SPSS syntax
file, sometimes referred to as data definition statements, then follow
these steps to get a copy of the data file in SPSS format:
- Start SPSS, but do not open any data file yet.
- Open the syntax file containing the commands to read the data.
- At the top of the syntax, find the "FILE HANDLE" statement. Change
the path and the name of the file to match the current file location
and name (the file should contain instructions as well).
- Select Run -> All .
#### Syntax Examples
**1) Accessing an SPSS data file and rename the dataset**
```spss
GET FILE = 'C:\\SPSS\\data\\example.sav'.
EXECUTE.
DATASET NAME example.
```
**2) Entering new variables and data**
```spss
DATA LIST LIST / age (F2.0) sex (A1) income (F2.1) ethnic (F1.0).
BEGIN DATA
45 F 60.9 2
52 M 22.3 1
34 M 45.8 3
67 F 34.5 1
END DATA.
```
**3) Creating new numeric or string variables**
```spss
NUMERIC ses (F1.0) / numkids yrsmarr (F2.0).
STRING state (A2) / region (A1) / citycode (A4).
```
**4) Labeling variables**
```spss
VARIABLE LABELS age "Age" sex "Sex" ethnic "Ethnic category".
```
**5) Labeling values of a variable**
```spss
VALUE LABELS sex 'M' "Male" 'F' "Female".
```
**6) Defining missing values**
```spss
MISSING VALUES sex ('X') ethnic (8,9) income (7777) age (0).
```
**7) Calculating a new variable using a function**
```spss
COMPUTE log10inc = LG10(income).
EXECUTE.
```
**8) Calculating a new variable using "if then" logic**
```spss
IF (sex='M' and age >= 65) olderman=1.
IF (sex='F' or age < 65) olderman=0.
EXECUTE.
```
or:
```spss
COMPUTE olderman = (sex='M' and age >= 65).
EXECUTE.
```
**9) Recoding a variable**
```spss
RECODE ethnic (1=0) (2=1) (3=1).
EXECUTE.
```
**10) Recoding into a new variable, keeping the original intact**
```spss
RECODE ethnic (1=0) (2=1) (3=1) INTO wh_nonwh.
EXECUTE.
RECODE income (LOWEST THRU 25 = 1) (26 THRU 44 = 2) (45 THRU HIGHEST=3)
INTO incomcat.
EXECUTE.
```
**11) Obtaining descriptive statistics for continuous variables**
```spss
DESCRIPTIVES VARIABLES=income age
/STATISTICS=MEAN STDDEV VARIANCE MIN MAX SEMEAN.
```
**12) Getting frequencies for categorical variables**
```spss
FREQUENCIES VARIABLES=sex ethnic olderman.
```
**13) Obtaining a cross-tabulation between two categorical variables**
```spss
CROSSTABS
/TABLES = jobcat BY gender
/STATISTIC = CHISQ
/CELLS = COUNT ROW COLUMN.
```
**14) Producing a histogram**
```spss
GRAPH
/HISTOGRAM(NORMAL)=income
/TITLE= 'Histogram of Income'.
```
**15) Creating side-by-side box-plots**
```spss
EXAMINE VARIABLES=income BY ethnic
/PLOT=BOXPLOT
/STATISTICS=NONE
/NOTOTAL.
```
**16) Generating a scatter plot**
```spss
GRAPH
/SCATTERPLOT(BIVAR)=age WITH income
/MISSING=LISTWISE.
```
**17) Obtaining a line graph**
```spss
GRAPH
/LINE(SIMPLE)=MEAN(income) BY ethnic.
```
**18) Getting a line graph with multiple lines (e.g. one for women, one
for men)**
```spss
GRAPH
/LINE(MULTIPLE)=MEAN(income) BY ethnic BY sex.
```
**19) Choosing a subset of the data to analyze or examine**
```spss
COMPUTE filt_var=(gender='m').
FILTER BY filt_var.
EXECUTE.
```
**20) Returning to the entire sample after looking at a subset**
```spss
FILTER OFF.
EXECUTE.
```
**21) Splitting the observations into strata, so that future analyses will be
repeated for each stratum separately**
```spss
SORT CASES BY ethnic.
SPLIT FILE BY ethnic.
```
#### Writing Syntax Tips
- Each command must begin on a new line and must end with a period.
- A comment can be included in a syntax file. The comment starts with an
asterisk (`*`) and can go beyond one line. A period (`.`) is required in the
end of the last line to terminate the comment.
- SPSS syntax is case insensitive. Capitalized words are used to indicate
keywords and command names in SPSS documentation, while lowercase letters
indicate user-specified words; this is only a convention.
- String values must be enclosed in single or double quotes.
- Commands, sub-commands, and keywords can be abbreviated to three letters,
but use four or five to avoid ambiguities.
- Variable names must always be typed out in full. Numbers and underscores are
valid in a variable name if they are not the first letter.
- The use of capitals will not distinguish two variable names; `name` and
`NAME` are identical.
- Sub-commands are preceded by a forward slash (`/`); they need not begin on a
new line. However, lines of code can't be more than 80 characters long.
- The word `EXECUTE` and a period (`.`) should be included after each command,
such as `COMPUTE` and `RECODE`, that requires changes to the data set.
Adding in `EXECUTE.` will never hurt anything; if in doubt, include it.
- Labels and other items enclosed in quotes must not run onto the next line.
- The word "then" never appears in "if then" types of commands.
## Good to Know
### Dialogue Boxes
The main way that a user tells SPSS what to do is through dialogue
boxes. These are windows that pop up when you click on an item in a menu
or double-click on particular objects.
**Try it: In Data View for
[exercise0_data.sav](data/exercise0/exercise0_data.sav),
select Analyze -> Descriptive Statistics -> Descriptives.**
[![](./media/spss-image10.png){width="5.03125in" height="3.53125in"} ](./media/spss-image10.png){target="_blank"}
While dialogue boxes vary according to the task involved, they all have
at least some of the following buttons:
- "OK" Carries out the procedure; executes the command now.
- "Continue" Returns to the main dialogue box after specifying an
option.
- "Paste" Writes out the syntax for the procedure in a syntax window.
- "Reset" Returns the dialogue box to its original blank state.
- "Cancel" Closes the dialogue box without taking any action.
- "Help" Opens up a help window specific to that procedure.
In most dialogue boxes, you select certain variables from the list on
the left and move these variables into the active variable box on the
right. Here are some tips:
- Click on any variable in the variable list, then type the first few
letters of a variable name to zoom to that name in the list.
- Hold down the Shift key and click on any two variables to select every
variable in between.
- Hold down the Control key and click to select multiple variables that are not
necessarily adjacent in the list.
You could choose to display either variable labels or names in the
variable list. For example, if you want the names to be displayed, go to
then "Edit" menu and click "Options". When a new window comes up, click
on the tab labeled "General". In the "Variable Lists" section, choose
option "Display names" or "Display labels" for variable labels.
### Adding Comments
You can add descriptive comments to data files by going to Utilities -> Data File Comments.
## Tips for Preparing an Excel File for Use with SPSS
- Place the variable names in the first row. Be sure the names follow
these rules:
- variable names should be no more than 64 characters long (and no
longer than 8 characters is usually recommended)
- variable names must start with a letter
- variable names may only have letters, numbers, or underscores in
them
- the following characters must not appear in variable names:
`%`,`$`,`#`,`@`,`!`,`+`,`*`,`~`,`"`,`-`,`.`
- no blank spaces can appear in variable names
- each variable name must be unique, with no duplicate variable
names
- variable names can be on one row only
- Only include the raw, un-summarized data. Delete extraneous data in
your Excel file, like row or column totals, graphs, etc.
- Include an identifying number for each case that is unique. If you
have several spreadsheets for one person, include the identifier on
each sheet.
- Only include one value per cell. Don't enter data such as "120/80"
for blood pressure. Enter systolic blood pressure as one variable,
and diastolic blood pressure as another variable.
- Don't leave blank rows in the data.
- Don't mix numeric and character values, such as names and ID
numbers, in the same column.
- Character variables are allowed in statistical packages but are not
as flexible as numeric variables. Use numeric values when feasible.
- If you have missing values, you can indicate them with a numeric
code, such as 99 or 999, or you can leave the cell blank. Be sure,
if you use a missing value code, that it is not a plausible real
data value.
- Save the spreadsheet with values only -- not formulas.
An ideal Excel data set might look like this:
[![](./media/spss-image11.png){width="439px" height="185px"} ](./media/spss-image11.png){target="_blank"}
## Exercise 1 -- Properly Formatted Data
In order to analyze data properly in SPSS, we need to follow the
guidelines set out in the course notes.
Open [exercise1\_data.sav](data/exercise1/exercise1_data.sav) and see what guidelines we have ignored.
## Importing Data into SPSS
SPSS can easily read in data from Excel, SAS or Stata, as well as
several lesser used options.
To open a file from another program, go to File -> Open. Under "File
Type" find the program the data file was created in. Select this type
and find the file you'd like to open. Click "Open". It's that easy --
the data file should appear. If your data is not stored in a format that
SPSS can read, then first convert the file to Excel format. Excel is a
useful liaison between other programs and SPSS.
**Try it: Select File -> Open. Investigate the different file types
that you can open.**
[![](./media/spss-image12.png){width="5.375in" height="3.490304024496938in"} ](./media/spss-image12.png){target="_blank"}
Data files that are in TEXT FORMAT (.txt) are either delimited or
divided into columns of fixed length. SPSS provides a wizard that asks
questions and makes intelligent guesses in order to import your text
data. This facility is somewhat like Excel's data-reading wizard.
Delimited files have rows of values that are separated by tabs, commas,
or spaces.
The first rows of data from a tab-delimited file might look like (where the first row identifies variable names, the second row is the first row of data):
```spss
Name Age Gender Occupation Yearly Salary
Jim 25 Male Accountant 65,000
```
A row of data from a comma-delimited file might look like:
```spss
Name,Age,Gender,Occupation,Yearly,Salary
Jim,25,Male,Accountant,65,000
```
Read delimited files into SPSS by going to File -> Read Text Data.
First, locate the name of the text file and click Open. Answer the
questions as you go along, clicking Next to move on to the next
question. Be sure to choose the Delimited file type, and identify the
character (comma, space, tab, etc) that acts as the delimiter.
Similarly, read fixed-column data files by going to File -> Read Text
Data. Open the file containing the text data. Follow along with the
questions, clicking Next to move along. Be sure to select the Fixed
width option.
You may name the variables for either delimited or fixed width files
during the import procedure, or after the data have already been read
into the Data Editor. Sometimes the variable names are already in the
top row of the text file. You will be able to tell SPSS whether these
names are present or absent in the text file.
Note that for fixed width data, particularly when many variables are
involved, it may be easier to use syntax commands rather than the menus.
This will provide a record of how the data were imported, and it will
allow you to stop and resume the import process in a later SPSS session.
When using the menus, there is no way to stop halfway through and save
your work.
## Exporting Data from SPSS
To save files in a certain format so that you can move data from SPSS to
another program (this is exporting from SPSS), make certain you are in
the Data Editor window, and go to File -> Save As and then select "File
Type". Be sure to give this new file a name.
You can export to most of the same file types as you can import.
You can also select a subset of variables to save in a new data file by
selecting the "Variables..." button in the "Save Data As" window. Once
you have selected the variables that you want for the new data file,
select "Continue" then "Save".
Try it: Select File -> Save As. Investigate the different file types.
Select the "Variables" button and investigate.
[![](./media/spss-image13.png){width="5.17in" height="3.36in"}](./media/spss-image13.png){target="_blank"}
[![](./media/spss-image14.png){width="4.625in" height="3.5625in"} ](./media/spss-image14.png){target="_blank"}
## Exercise 2 -- Importing/Exporting Excel
Open [exercise2_data.xls](data/exercise2/exercise2_data.xls) (an Excel file). Modify this Excel file such that
it can be imported into SPSS properly. Save the file and close it.
Open the file in SPSS (import it). Export this file back into Excel, but
only save the following variables: id, salary, minority.
## Getting Help from SPSS
Underneath the help menu are several different options. Here are a few:
- "Topics" Search for a word or command
- "Tutorial" Get an introduction to some SPSS basics
- "Case Studies" Look at some example analyses using SPSS
- "Statistics Coach" Get help in choosing the right statistical
procedure
- "Syntax Reference" View syntax manuals in their complete form (.pdf)
- "SPSS Home Page" Open an internet browser and go to www.spss.com
- "About" View version number and license expiration date
- "Product Registration" Renew the license once it has expired
When looking at a help entry for a statistical procedure, there will
usually be a link labeled "Show Me", which provides explicit
instructions for carrying out the procedure via an example.
The "Command Syntax Reference" menu allows users to access the entire
text that can be found in the hard-copy manuals. The on-line manuals
open in Adobe Acrobat Reader and come with an index of topics. Click on
any page number to go instantly to that page.
**Helpful Hint:** when examining the on-line syntax guides, click the
small button at the bottom marked "100%" and choose 150% or 200% for
easier reading.