Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
February 2014
Slide 2
Contents
Resources I ______________________________________________________________________________________________ 3
Resources I
Manuals
This introduction is based on the manual IBM SPSS Statistics 21 Brief Guide.
You can find this manual and the IBM SPSS Statistics 21 Core System User's Guide here:
◦ Ilias
◦ http://www-01.ibm.com/support/docview.wss?uid=swg27024972
Slide 4
First Steps
Change the Application Language
The language can be selected through the "General" tab under EditOptions:
Slide 5
Slide 6
Slide 8
Data View
Cases (Rows)
In a survey of individuals, each row repre-
sents a respondent.
In a scientific experiment, each row usually
corresponds to a measurement.
Variables (Columns)
Each column of the data editor corresponds to a particular attribute.
In many areas of research, these measurements are called variables.
Slide 9
Slide 10
SPSS can be adjusted so that variables are displayed with their names and in
alphabetical order.
To do so, select the following setting under the General tab of EditOptions:
Slide 12
Place the cursor in the box that contains the variables, and enter a character from the keyboard.
The first variable beginning with this character will appear.
This allows you to quickly search through the variable box to find a variable.
Slide 13
…
…
Slide 14
Data Editor
Output
Syntax Editor
*.sav files
*.spv files
*.sps files
Slide 15
Data Editor
Output
Syntax-Editor
*.sav files
*.spv files
*.sps files
Slide 16
Data Editor
Output
Slide 17
Where is the syntax for this analysis? => The syntax is displayed in the output.
Double-click the syntax part in the log, highlight and copy the syntax.
Slide 18
Option II: Paste the syntax directly from the dialog box ("Paste" button).
Slide 20
Slide 22
Syntax
COMPUTE income_equiv = income / SQRT(reside).
Slide 23
Recoding a variable
Example: creating a categorical variable from a scale variable.
For example, based on age in years we could build age categories.
Menu: TransformRecode into Different Variables…
Slide 24
Syntax
RECODE age (Lowest thru 24=1) (25 thru 44=2) (45 thru 60=3) (61 thru Highest=4) INTO age_r.
FREQUENCIES VARIABLES=age age_r /ORDER ANALYSIS.
Result
Scale values (age) Categorical values (age_r)
==>
: Categories
1: up to 24 years
2: 25 - 44 years
3: 45 - 60 years
4: over 60 years
Slide 25
Slide 26
Syntax Result
USE ALL.
COMPUTE filter_$=(age > 45).
FILTER BY filter_$.
EXECUTE .
FREQUENCIES VARIABLES=age
/FORMAT=NOTABLE
/HISTOGRAM
/ORDER=ANALYSIS.
FILTER OFF.
These lines remove the
USE ALL. "filter" for all analyses
to come.
EXECUTE .
Slide 27
Split File
Sometimes data in different categories should be analyzed separately.
To do this, the data can be split up, and the same analysis can be performed on two or more da-
tasets.
For example, we could split the dataset by means of the variable age_r which means we are
conducting separate analyses for each of the age categories.
Menu: DataSplit File…
Slide 28
Syntax Result
FREQUENCIES VARIABLES=income
/FORMAT=NOTABLE
/HISTOGRAM
/ORDER=ANALYSIS.
Data Entry
Data Entry Options
Slide 30
To suppress the decimal place for the variables age, marital and income:
◦ At the bottom of the Data Editor window, switch to Variable View.
◦ Select the "Decimals" column and enter a 0 for age.
◦ Select the "Decimals" column and enter a 0 for marital.
Slide 32
Select the Values cell for marital and open the dialog box.
◦ For "Value", enter 1.
◦ For "Label", enter "single".
◦ Click on "Add" so that this designation is registered.
Slide 33
Slide 34
The reason why data is missing could be important for your analysis.
For example, for a particular question, it could be useful to distinguish between those who re-
fused to answer and those for whom the question was not applicable.
In "Variable View" select the "Missing" cell for income and open the dialog box.
In this dialog box you can specify up to three different missing values, either by defining a range
of values, or particular single values.
Slide 35
Importing Data
Slide 36
Column headings
= Variable names
:
Slide 37
Open the Excel file through the SPSS File menu (Excel file must be closed)
Slide 38
Importing data from a text file
Search for the text file demo.txt
◦ On the Computer under: C\…\Programs\IBM\SPSS\Statistics\21\Samples\
◦ On Ilias: > … > Data Resources
Open the text file through the SPSS File menu (text file must be closed)
Slide 39
Slide 40
Resources II
SPSS Help System (Core System User's Guide)
Help Menu (the most important entries)
◦ Topics: This allows you to access the tabs Contents, Index and Search. Use these tabs to
search for particular Help topics.
Tutorial: Step-by-step instructions for many basic functions.
◦ Case studies: Practical examples to design different types of statistical analyses and for the
interpretation of results.
◦ Statistics Coach: This coach helps you to find the procedure that you would like to use. The
Statistics Coach offers access to most of the procedures.
◦ Command Syntax Reference: Detailed information about command syntax is available
from two sources: as a component of the Help system, and as a separate PDF-document in
the Command Syntax Reference manual, which is also available through the Help menu.
Context dependent help
◦ Dialog box help: Most dialog boxes contain the Help button, through which you can call up
corresponding help topics for the dialog box.
◦ Pivot Table Context Help Menu: If you right-click on a term in a viewer-activated pivot ta-
ble, and then select Direct Help from the context menu, you obtain a definition of the term.
◦ Command syntax: Place your cursor inside a block of command syntax in the command
syntax window, and press the F1 key on the keyboard.
Slide 41
Help Menu:
=>
=>
Slide 42
Tutorials
:
Slide 43
Online Resources
SPSS Solutions for Education
www-01.ibm.com/software/analytics/spss/academic/students/resources.html
User znz@gmx.ch
Password 7mydevelopper
SPSS Support (resources for all levels of users and application developers)
www.spss.com/devcentral
User znz@gmx.ch
Password 7mydevelopper
Slide 44
Notes: