SPSS Basic Skills Tutorial
Transcript of SPSS Basic Skills Tutorial
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 1/13
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 2/13
Clicking on this box will bring up the variable type menu:
If you select a numeric variable, you can then click in the width box or the
decimal box to change the default values of 8 characters reserved to displayingnumbers with 2 decimal places. For whole numbers, you can drop the decimals
down to 0.
If you select a string variable, you can tell SPSS how much "room" to leave in
memory for each value, indicating the number of characters to be allowed for dataentry in this string variable.
Width
The width of a variable is the number of characters SPSS will allow to be entered
for the variable. If it is a numerical value with decimals, this total width has toinclude a spot for each decimal, as well as one for the decimal point. You canchange a width by clicking in the width cell for the desired variable and typing a
new number or you can use the arrow keys at the edge of the cell
Decimals
The decimals of a variable is the number of decimal places that SPSS will display.
If more decimals have been entered (or computed by SPSS), the additional
information will be retained internally but not displayed on screen. For wholenumbers, you would reduce the number of decimals to zero. You can change the
number of decimal places by clicking int he decimals cell for the desired variable
and typing a new number or you can use the arrow keys at the edge of the cell
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 3/13
Label
The label of a variable is a string of text to indentify in more detail what a
variable represents. Unlike the name, the label is limited to 255 characters andmay contain spaces and punctuation. For instance, if there is a variable for each
question on a questionnaire, you would type the question as the variable label. To
change or edit a variable label, simply click anywhere within the cell.
Values
Although the variable label goes a long way to explaining what the variablerepresents, for categorical data (discrete data of both nominal and ordinal levels of
measurement), we often need to know which numbers represent which categories.
To indicate how these numbers are assigned, one can add labels to specific values
by clicking on the ... box in the values cell
Clicking here opens up the Value Labels dialogue box.
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 4/13
• Click in the Value field to type a specific numeric value
• Click in the Label field to type the corresponding label
• Click on the Add button to add this pair of value and label to the list
You can remove a pairing created above by clicking on that pair and then clicking
on the delete button. Similarly, you can change pairing by clicking on the pair,then typing in a new value, a new label, or both; then, you click on the Change
button. When you are satisfied with the definitions of each value, click on the OK button
The real beauty of value labels can be seen in the Data View by clicking on the
"toe tag" icon in the tool bar , which switches between the numeric values
and their labels
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 5/13
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 6/13
Missing
We sometimes want to signal to SPSS that data should be treated as missing, even
though there is some other numerical code recorded instead of the data actually
being missing (in which case SPSS displays a single period -- this is also called
SYSTEM MISSING data). In this example, after clicking on the ... button in theMissing cell, I declared "9", "99", and "999" all to be treated by SPSS as missing
(i.e., these values will be ignored)
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 7/13
Columns
The columns property tells SPSS how wide the column should be for each
variable. Don't confuse this one with width, which indicates how many digits of
the number will be displayed. The column size indicates how much space isallocated rather than the degree to which it is filled.
Align
The alignment property indicates whether the information in the Data View
should be left-justified, right-justified, or centered
Measure
The Measure property indicates the level of measurement. Since SPSS does not
differentiate between interval and ratio levels of measurement, both of thesequantitative variable types are lumped together as "scale". Nominal and ordinal
levels of measurement, however, are differentiated
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 8/13
Entering the Data
The first step for entering the actual data is to click on the Data View tab.
To enter new data, click in an empty cell in the first empty row. The "Tab" key will enter the value and jump to the next cell to the right. You may also use the Up, Down, Left,
and Right arrow keys to enter values and move to another cell for data input.
To edit existing data points (i.e., the change a specific data value), click in the cell, type
in the new value, and press the Tab, Enter, Up, Down, Right, or Left arrow keys.
Lab Activities
1. Open a new data set in SPSS2. Create a nominal variable called cat_dog that has a width of 3 with 0 decimal
places. The label should be "Do you like cats or dogs better?". The values should
be 1 for cats and 2 for dogs (or vice versa). Do not worry about missing datacodes.
3. Create a scale variable called neatness that has a width of 8 with 3 decimal places.The label should be "Eric Cartman's Neatness Scale (higher = neater)". There will
be no value labels.4. Enter data for the following cases
• case 1 prefers cats and has a neatness of 4
• case 2 prefers dogs and has a neatness of 3
• case 3 prefers dogs and has a neatness of 7
• case 4 prefers dogs and has a neatness of 2
• case 5 prefers cats and has a neatness of 5
• case 6 prefers cats and has a neatness of 1
• case 7 prefers cats and has a neatness of 3
• case 8 prefers dogs and has a neatness of 65. Change the neatness of the second case from 3 to 6, like you would if you
discovered a data entry error.
6. Save your data set
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 9/13
2)
SPSS Learning Module
How to input data into the SPSS data editor
Introduction
This page shows the basics of entering data into the SPSS data editor. The SPSS data
editor can be a good choice for entering your data. It has a friendly interface that
resembles an Excel spreadsheet and by entering the data directly into SPSS, you don'tneed to worry about converting the data from some other format into SPSS. For
example, you might enter your data in Excel, and then try to convert it to SPSS and find
out that you used the latest version of Excel, but your version of SPSS has trouble
reading the latest Excel files.
Below is a screen snapshot of what the SPSS data editor looks like when you start SPSS.
As you see, it does look like an Excel spreadsheet. In this editor, the columns willrepresent your variables, and the rows will represent your observations (sometimes calledrecords, subjects or cases).
Let's illustrate how to enter data into the SPSS data editor using the data file below.
make mpg weight price
AMC Concord 22 2930 4099
AMC Pacer 17 3350 4749
AMC Spirit 22 2640 3799
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 10/13
Buick Century 20 3250 4816
Buick Electra 15 4080 7827
First, you need to tell SPSS the names of your variables. You can double click on thecolumn heading (shown with the arrow below for the first column). That permits you to
enter information about the variable for that column.
Below you see the dialog box that appears that allows you to enter information aboutyour variable. For the first variable, let's change the Variable Name to be make (see
arrow) and click on Type so we can tell SPSS that this is a string variable.
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 11/13
You can tell SPSS that make is a string by clicking String at the left (see left arrow) and
then we should indicate that the length is up to 13 characters (see arrow at right). You
can then click Continue. When you return to the Define Variable dialog, click OK .
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 12/13
Click the column heading for column 2 and supply the name mpg and click ok . Click the
column heading for column 3 and indicate the variable name is weight, and likewise for
column 4 indicate that the variable name is price. Once you have done this, the DataEditor will look like below.
Once you have created the column headings (variable names) you are ready to enter thedata. It is usually best to enter the data one observation at a time going from left to right.
After you type in a entry for a variable, you can press the Tab key to move to the nextvariable on the right. Once you reach the last column (race) then use the arrow keys to
move to the first column of the next observation. Once you have entered the sample datafile, the SPSS Data Editor would look like this.
8/4/2019 SPSS Basic Skills Tutorial
http://slidepdf.com/reader/full/spss-basic-skills-tutorial 13/13
You can save your data file by clicking File then Save. It would be wise to save your
data about every 10-15 minutes. Imagine spending three hours typing in data, and thenthe power goes out, your computer stops responding, and then you have to enter the data
all over again. The data are not saved when you type them in; rather, the file is saved
when you choose File then Save.
Problems to look out for
• If you have character data, be sure to click Type in the Data Definition windowand tell SPSS that your variable is a string variable. SPSS will not allow you to
enter character data into a variable unless you tell it that the variable is a string
variable.
For more information
• For more detailed information about the SPSS Data Editor, see the SPSS Manual.