SPSS 16 - CSSCR Home Page

Download Report

Transcript SPSS 16 - CSSCR Home Page

SPSS 16 for Windows
A Course for Beginners
Consultant: Betty Zou
7/21/2015
(CSSCR)
Zou
1
Topics Covered
 Getting Started
 Entering Data
 Analyzing Data (for beginners)








Frequencies
Descriptives
Explore
Crosstabs
Sorting Data
Selecting Cases
Recoding Data
Chart Builder
7/21/2015
(CSSCR)
Zou
2
Getting Started (1)
At CSSCR, you can find SPSS 16 on the desktop
Compatibility:
7/21/2015
SPSS 16

SPSS 13 and 16 are
mutually compatible
SPSS 13

But some
graphs/charts saved
on SPSS 16 will not
open on SPSS 13
(CSSCR)
Zou
3
Getting Started (2)
Two windows
Data editor window
7/21/2015
Output viewer window
(CSSCR)
Zou
4
Getting Started (3)
Data View
Variables
Toolbar
Cases
Data View
7/21/2015
(CSSCR)
Zou
5
Getting Started (4)
Variable View
Variable Characteristics
Variables
Variable View
7/21/2015
(CSSCR)
Zou
6
Entering Data (1)
Name and type of variables
Set the characteristics
of your variables


Type the name of the
variable
Choose the type of
variable



7/21/2015
(CSSCR)
Zou
Automatically set
on numeric, enter
numbers only
String allows you
to enter characters
Specify the width
and decimals
7
Entering Data (2)
Variable label and value label

Give your variables a descriptive label

Insert value labels



1.00 = Male
2.00 = Female
Value labels will appear in output window
7/21/2015
(CSSCR)
Zou
8
Entering Data (3)
Missing Values

Specify any missing values




7/21/2015
Describe under value labels
99 = Respondent refused to answer
999 = Question did not apply
Important to flag for special treatment
or excluded from calculations
(CSSCR)
Zou
9
Entering Data (4)
Variable Measurement

3 kinds of measurement


7/21/2015
(CSSCR)
Nominal and Ordinal: Data can
be string or numeric, and are
treated as categorical
Scale: Data must be numeric
Zou
10
Entering Data (5)
Enter your data in Data View

Notice the
variable
names are
at the top
7/21/2015
(CSSCR)
Zou
Click the value labels
button to change
between the number
and the label
11
Descriptive Statistics
 The sample dataset we will use: world95.sav

File > open > data

c:/program files/SPSSInc/SPSS16/Samples/world95.sav

Available on the computers at CSSCR
7/21/2015
(CSSCR)
Zou
12
Frequencies (1)
 You want to know the number of people/cases that gave
the same response
 Example: How
many countries
are Catholic?

7/21/2015
Analyze >
Descriptive
Statistics >
Frequencies
(CSSCR)
Zou
13
Frequencies (2)




7/21/2015
(CSSCR)
Zou
A pop-up
window will
show
variables on
the left
column
Choose the
variable you
want
(religion)
Click the
arrow to put it
in the
Variables box
Click OK
14
Frequencies (3)

The frequency table shows up in the Output Viewer
Frequency Table



7/21/2015
(CSSCR)
Zou
Frequency: 41
countries are Catholic
Percent: Includes the
missing response,
37.6% are Catholic
Valid Percent: Does
not include the missing
response, 38% are
Catholic
15
A Note on the Output Viewer
The output viewer
saves and prints as a
separate document
from the data editor.
Outline pane: Helps
manage the output
contents. Click on any
icon to go there in your
viewer.
Double click titles or
tables to edit them.
You can also copy and
cut any item.
7/21/2015
(CSSCR)
Zou
16
Descriptives (1)



You want to know the mean, standard deviation, minimum,
maximum, etc…
Variables should be scale and can be meaningfully measured
Analyze > Descriptive Statistics > Descriptives
7/21/2015
(CSSCR)
Zou
17
Descriptives (2)



Choose “gdp_cap” for Gross Domestic Product
Click the arrow to bring it to the variables box
Click “Options” to choose the calculations you want
7/21/2015
(CSSCR)
Zou
18
Descriptives Table in Output Viewer
Number of cases/economic
regions
7/21/2015

Descriptive table
shows up in the
Output Viewer

Shows you the
Min., Max., Mean
GDP of all
economic regions
surveyed

The world’s
mean GDP is
$5,859.98
Standard deviation
(CSSCR)
Zou
19
Explore




You want to know the mean, minimum, standard deviation, etc. of
each region
Analyze > Descriptive Statistics > Explore
Enter “gdp_cap” into Dependent List
Enter “region” into Factor List
7/21/2015
(CSSCR)
Zou
20
Explore Table in Output Viewer
Gives you the
statistic in
each region
7/21/2015
(CSSCR)
Zou
21
Crosstabs (1)


You want to compare the number or percentage of respondents within
subcategories
Analyze > Descriptive Statistics > Crosstabs
7/21/2015
(CSSCR)
Zou

Choose the
variables you want
to appear in the
rows and columns

Under “Cells” you
can choose to see
the percentages

We will look at the
predominant
religion in each
region of the world
22
Crosstabs (2)


Click “Statistics”
Choose the calculations you want
7/21/2015
(CSSCR)
Zou
23
Crosstabs in Output Viewer
In Pacific Asia, 1 country,
2.4 % is Catholic, and 5
countries, 18.5% are
Muslim.
Gives you the statistics
previously chosen
7/21/2015
(CSSCR)
Zou
24
Sorting Data (1)
 Sort Cases
 Cases are
sorted by the
variable, like
country name
 Choose the
variable you
want to sort by
 Click ascending
or descending
7/21/2015
(CSSCR)
Zou
25
Sorting Data (2)
 Sort Variables
 Same process
 Data > sort
variables
 Choose by which
variable
characteristic you
want to sort
7/21/2015
(CSSCR)
Zou
26
Selecting Cases (1)
 You want to select out
certain cases to look at
them more closely

For example, you want to
only analyze countries that
have GDP per capital less
than or equal to 6000


Go to: Data > Select cases
Click: If condition is
satisfied
Click: If…

7/21/2015
(CSSCR)
Zou
27
Selecting Cases (2)
 In the If window



Find the variable
“gdp_cap”
Click arrow
gdp_cap <= 6000
 Notice the symbols



7/21/2015
+ , < , > , <= ,
>= , & , | (or)
and etc…
(CSSCR)
Zou
28
Select Cases (3)

In Data View

Cases with a per capital
GDP greater than 6000
are filtered out

There is a new variable
that shows the filter

7/21/2015
(CSSCR)
Zou
In the future, use this
variable as a shortcut
29
Select Cases (4)
 Turn off the filter



7/21/2015
Data > Select cases
Click “All cases”
Notice the “If” button is
turned off
(CSSCR)
Zou
30
Recoding Data (1)
 Recode gdp_cap into
low, medium, high

Transform > Recode
into Different Variables





7/21/2015
(CSSCR)
Zou
Find “gdp_cap” variable
Click into box
Give a new name
Click change
Click Old and New
Values
31
Recoding Data (2)
 Old and New Values Window
Step 2: Type
new value 1
Step 3: Click
Add
Step 4: Choose
range for middle
range, value 2
Step 1: Choose the
range of value for
category 1
7/21/2015
Step 5: Do the
same for highest
range, value 3
(CSSCR)
Zou
32
Recoding Data (3)
Set value
labels for the
new variable
1 = Low
A new
variable
appears
7/21/2015
2 = Medium
3 = High
(CSSCR)
Zou
33
Recoding Data (4)
 Analyze the new variable
7/21/2015
(CSSCR)
Zou
34
Chart Builder (1)
 Toolbar


Graphs > chart
builder
Chart builder window
1. Choose the kind
of graph you
want
2. Click & drag the
graph into the
above window
7/21/2015
(CSSCR)
Zou
35
Chart Builder (2)
3. Choose
the
variable
5. Choose the
statistic
you want
4. Click &
drag it
into the
x-axis
7/21/2015
6. Remember
to click
“Apply”
(CSSCR)
Zou
36
Some Graphs
7/21/2015
(CSSCR)
Zou
37
Chart Editor
 Output View


Double click
graph
Chart editor
will pop up
 Edit graph

7/21/2015
Double click
anywhere on
graph to edit
(CSSCR)
Zou
38