Você está na página 1de 8

SPSS Tutorial

In a typical session with SPSS, you are likely to work with three kinds of windows and have the
opportunity to save the contents of each.
1. The Data Editor Window, which is the first window you encounter, is used to define and
enter your data and to perform statistical procedures.
2. The results of the statistical tests appear in the Output Window.
3. The Syntax Window can be used to keep a record of the operations that you perform on
your data. This window will automatically open when you click a Paste function. So, for
eample, when you select certain cases for analysis or transform your data or compute a
correlation, clickin! the Paste function will store a record of what was performed "in
command lan!ua!e#. $eyond servin! as a lo! for your operations, it is possible to run
commands from the Syntax window. The synta window will not be discuss here% to find
out how to do this, you can read throu!h the Help commands.
&ou can save any of the windows. To save a window, make that particular window active. &ou
can activate a window by usin! the Window menu. 'nce you have activated the desired window,
click on File and then Save.
The contents of each of these windows can also be printed by activatin! a window and clickin!
on the Printer icon "or you can open the File menu and then click on Print#.
SPSS automatically adds a three(letter suffi to the end of the file name ").sav) for data editor
files, ).spo) for output files, and ).sps) for synta files#. Thus, with a particular data set, it is
probably wise to use a sin!le name for the prefi of all three files and let the suffi distin!uish
amon! the different file types.
Entering Data, Computing Descriptive Statistics, Transorming and Selecting Data
The first step in workin! with SPSS is to enter your data and to create an SPSS data file.
*lthou!h we will assume here that you are typin! in your data for the first time, SPSS can also
read already established data files from other pro!rams such as +cel and ,otus 1(2(3 or
-icrosoft *ccess.
.hen you first open up SPSS for .indows, you will be prompted to make a decision about
runnin! the tutorial, typin! in new data, openin! up an eistin! file, etc. $ecause you will be
creatin! a new datafile, click on Type in data and then click O!. This should brin! you to the
initial screen which is the data editor.

"nitial SPSS Data Editor Screen
The key to typin! in your data is to reali/e that the data from each case or participant
must be typed on a separate line. 0or eample, if you were interested in analy/in! the five
test scores "1 variables# of the 22 students in a class, you would use one row "with five
!rade scores on each line 3 one per column# for each of the 22 students.
*ssume that you are interested in developin! a profile of people who use a soup kitchen
in your city. To do this you collected the followin! information from a random sample of
12 users of the soup kitchen.

Person
#ender
$ge
%um&er o
Si&lings
Healt'
Score
Personality
Score
$ctivity Score
1 -ale 45 2 15.56 11 (6
2 0emale 27 3 52.73 22 6
3 -ale 38 2 66.21 17 2
6 -ale 64 1 68.13 35 2
1 0emale 15 2 32.54 21 (1
5 0emale 51 2 28.34 22 (3
( ( (
12 -ale 18 2 31.82 31 2
*s you type in your data, you will need to do each of the followin!.
1. 9reate a separate row for each case, which in this particular eample is each person.
2. 9reate a column for each variable of interest. In this eample, we will use seven
columns, one for each of the followin! variables "person, !ender, a!e, number of
siblin!s, health score, personality score, activity score#. :ote that the first column is
usually case number or Identification number.
3. ;evelop a numerical code for the !ender variable. In this case, we will assi!n the
value of 1 to females and the value of 2 to males.
Creating t'e Data File
Step )( :otice on the bottom left hand corner of the screen that you can access either the
Data *iew or *aria&le *iew windows. In establishin! the variables and their
characteristics, you should work in the *aria&le *iew window.
Step +( In the space for %ame, type the desired variable name, which can be no more
than 8 characters in length. The first character must be alphabetic% the remainin!
characters can be alphabetic and<or numeric, and no spaces can appear in the name. So, in
this case, let=s type )person.)
Step ,( :et press the Tab key and you will notice that SPSS assi!ns default values to all
of the settin!s. >o throu!h the relevant column for that particular variable. 9lickin! on a
column will often epose a shaded area. &ou can click on this to pursue your options.

*aria&le *iew Window
$elow are listed the functions of the columns and the default values.

C'ange Settings Deault *alue
Type (( allows you to define the type of variable
numeric
Widt' (( total number of characters
7
Decimals (( number of characters beyond the decimal point
2
-a&el (( allows you to list a more etensive label for your variableup to 215
characters
none
*alue (( allows you to provide labels for the various levels of a variable
none
.issing *alues (( enables you to desi!nate certain scores as missin!.
none
Columns ((allows you to chan!e the ma number of characters in a column.
7
$lign (( allows you to determine the ali!nment of your column
ri!ht
.easure (( allows you to determine the kind of scale for the variable
scale
In this eample, because there are no decimal points in our person variable, click on the
!ray portion followin! %umeric and chan!e the Decimal Places to 2. *lso, click on
-a&el and type in a label like )participant number) in the *aria&le -a&el slot. :ote that
you could have eercised other options such as modifyin! the column width and whether
the numbers appear left(?ustified, ri!ht(?ustified, or centered.
Step /( Set up the net variable. 9lick on line 2 of the %ame column, on the net var
column and type )!ender). $ecause we have decided to use the codes of 1 and 2 to
represent females and males, respectively, you can click on Decimals to chan!e the
decimal places to 2 ":ote that you could have done this also from the Type column#.
:et, click on -a&el to provide a label for your variable((for eample, you mi!ht type
)!ender of the participants.) In this case, because we have specified numeric codes for
the different values for our variable and we are likely to for!et these over time, we should
specify *alues. In the field for *alue, type a )1,) and in the field for -a&el, type a label
such as )females.) Then create the label of )males) for a value )2.) *t this point, your
window should look like the one below.
Current *aria&le *iew Window
Step 0( ;efine each of the remainin! four variables. *fter you do this, click on the Data
*iew window "lower left hand corner#. &ou should see all of the variable names that you
have entered like in the fi!ure below.
Data File 1Data *iew2
Step 3( :ow, type in the data for the first si persons in the data sheet.

Data ile Containing t'e First Six -ines o t'e Data
Step 4( .hen you are satisfied with your data file, you should save it. 9lick on File and
Save and type in a file name "e.!., )soupkit)#. :ote that SPSS automatically adds the ).
sav) suffi to your file name. This is the SPSS suffi that is used to desi!nate data files.
Computing t'e .ean and Standard Deviation or $ll Scores
Step )( 9lick on $naly5e, then Descriptive Statistics, then Descriptives.
Step +( @i!hli!ht each of the variables for which you are interested in computin!
descriptive statistics "e.!., *!e, :umber of Siblin!s, @ealth Score, Personality Score, and
*ctivity Score# and move them into the *aria&le1s2 column. :ote that you can move all
of these variables over at one time by clickin! and dra!!in! over the items that you want
to select.
Step ,( 9lick on Options and select the desired statistics. *t minimum, you should select
the .ean and Std( deviation. :ow, click on Continue and then O!.
Step /( &our output should look like that below. &ou may have fewer or more statistics
dependin! on your selection in the Options menu. :ote that the variable labels appear on
your printout.
Number of siblings by Percent
3.00
1.00
.00

Output rom t'e $nalysis
The output window is divided into 2 panes. The outline pane contains an outline of all the
information stored in the Aiewer. The contents pane contains statistical tables, charts, and
tet output. 0or easier navi!ation, click an item in the outline pane to display it in the
contents pane. *n open book icon in the outline pane indicates that it is currently visible
in the Aiewer, althou!h it may not currently be in the visible portion of the contents pane.
To hide a table or chart, double(click its book icon in the outline pane. The open book
icon chan!es to a closed book icon, si!nifyin! that the information associated with it is
now hidden. &ou can also chan!e the order in which the output is displayed by clickin!
on the items you want to move in the outline pane, and dra!!in! them to a new location
in the outline. &ou can also move output items by clickin! and dra!!in! them in the
contents pane.
Step 0( If you would like a hard copy of this output, you can print it by clickin! on the
print icon on the tool bar. *lso, you can save the output by clickin! on the disk icon. :ote
that SPSS automatically adds the ).spo) suffi to your output file name.
Step 3B 9opy the output to a .ord file. 9lick on the table and outline bo will form
around it. Ci!ht click and then copy. 'pen a blank .ord document. 0rom the +dit menu
in the .ord document select paste special. In the dialo! bo that appears select picture
and 'D. The table is inserted as a picture and cannot be formatted. If you choose
formatted as Cich tet the columns and rows are retained and you can format the table in
.ord.
Step 4( 9reate a pie chart. 'n the >raphs menu select pie. In the dialo! bo that appears
click summaries for !roups of cases and then define.
In the ESummaries for >roups of 9ases dialo! bo,
where it says Edefine Slices byF move the Esiblin!sF
variable over. Then click the EG of casesF radio
button under ESlice CepresentF. 9lick on the ETitlesF button and under ,ine 1 type
E:umber of siblin!s by PercentF. Then 9ontinue and then 'D. The pie chart will appear
in the results window.
Computing .eans and Standard Deviations or .ales and Females Separately
Step )( 0rom the output screen, you cannot !et to all of the options that you mi!ht be
interested in. If the option that you are interested in is not available, click on Window,
and then SPSS Data Editor to return to the Data Editor window. &ou will need to do
this to do the followin! eercises.
Step +( 0irst click on Data and then Split File. This allows you to split the file accordin!
to a particular variable and conduct separate analyses for each level of the variable.
Step ,( :et you should select Organi5e output &y groups and move #ender from the
variable list to the #roups 6ased on list. .hen you have done this, click on O!.
Step /( :ow, click on $naly5e, Descriptive Statistics, and Descriptives. Select the
desired variable"s# and Options.
Step 0( :ote in your output that two sets of data summaries are presented((one for
females and one for males.
Computing a %ew *aria&le and T'en Perorming Descriptive Statistics
*ssume that in addition to our interest in calculatin! the means and standard deviations
for the collected variables, we wish to compute a composite score that rou!hly represents
some overall measure of physical and mental health. Specifically, assume that we wish to
compute the mean and standard deviation for a new variable called overall health that
represents the avera!e of each person=s @ealth Score and Personality Score. &ou can do
this by performin! the followin! steps.
Step )( 9lick on Transorm and then Compute. This should produce the screen shown
below.

Compute *aria&le Screen
Step +( Type the name of the variable that you wish to create "in this case, we will name
it )ohealth)# in the Target *aria&le field. :ow, you need to type in the computation that
you wish to have performed in the %umeric Expression field. &ou can use all the
operations listed on the bottom of this screen, It is important to reali/e that operations
within parentheses are performed first. Thus, if we wish to compute the mean of the
@ealth and Personality Scores, we need to add these to!ether before we divide by 2. To
do so, simply type "or move over# variable names for the @ealth and Personality Scores
and enclose these within parentheses. :et, click on the < button "or type it(( this is the
symbol for division# and follow this with the number )2.) &our tar!et variable and your
numeric epression fields should look like the followin!B
Target *aria&le %umeric Expression
ohealth H "health I personal#<2
Step ,( :ow click on the Type7-a&el field. This will enable you to create a lon!er label
for your variable and modify the type and width of the variable. 'nce you have done this,
press Continue. Then press O!.
Step /( The new variable now appears in your data file. :ow you are ready to calculate
the mean and standard deviation for this new variable by usin! the procedures outlined
above.

Você também pode gostar