Basic Training in Spss WFP
Basic Training in Spss WFP
May 2018
Introduction
• Statistical Package for Social Scientist,
• (SPSS),is one of the most important and
powerful software used in the statistical
production lines in a number of countries.
• Prior knowledge in any widows based
application is sufficient for this short
introduction in the basic features in SPSS.
Overview
• There are a number of different types of windows in
SPSS:
• Data Editor. This window displays the contents of the
data file. You can create new data files or modify existing
ones with the Data Editor. The Data Editor window
opens automatically when you start an SPSS session.
• In older versions of SPSS you can have only one data
file open at a time but later versions you can have
several….
• Viewer. All statistical results, tables, and charts are
displayed in the Viewer. You can edit the output and
save it for later use. A Viewer window opens
automatically the first time you run a procedure that
generates output….
Overview
• Syntax Editor. You can paste your dialog
box choices into a syntax window, where
your selections appear in the form of
command syntax. You can then edit the
command syntax to use special features
of SPSS not available through dialog
boxes. You can save these commands in
a file for use in subsequent SPSS
sessions. …
Status Bar
• The status bar at the bottom of each SPSS window
provides the following information
• Command status. For each procedure or command that
you run, a case counter indicates the number of cases
processed so far. For statistical procedures that require
iterative processing, the number of iterations is
displayed.
• Filter status. If you have selected a random sample or a
subset of cases for analysis, the message Filter on
indicates that some type of case filtering is currently in
effect and not all cases in the data file are included in the
analysis.
Status Bar cont..
• Weight status. The message Weight on
indicates that a weight variable is being
used to weight cases for analysis.
Showing and Hiding the Status
Bar
• relationship_1?
• marital_1
• qualification_1?
Copy Value labels
• The variables sex_1, sex_2,…,p all need the same Value Labels
• Either you can repeat the above instructions for each variable in turn
or take advantage of a useful shortcut:
• Click in the cell containing the value for sex_1. Copy this cell by
using either Edit /Copy from the main menu or by clicking the right
mouse button and selecting Copy, or by pressing <Ctrl + C>.
• Point at the cell for Value for variable sex_2, sex_3,
• choose Paste, or use <Ctrl + V>.
Missing values
• Composite indicators
• A single numeric indicator that summarizes a larger set
of sub-indicators
• Coping Strategies Index- summarizes the consumption-
related coping strategies a HH has engaged in the last
month
• COMPUTE CSI=(lessExpenpast7days * 1) +
(borrowpast7days * 2) + (reduceportionsize7days * 1)
+ (reducefoodquant7days * 3) + (reducemeals7days * 1).
EXECUTE.
Syntax rCSI
• COMPUTE CSI=
(reducefoodquant7days * 3) +
(borrowpast7days * 2) +
(reduceportionsize7days * 1) +
(reducemeals7days * 1) +
(lessExpenpast7days * 1).
EXECUTE.
Recoding Values
• You can modify data values by recoding them.
• This is particularly useful for collapsing or
combining categories.
• You can recode the values within existing variables,
or you can create new variables based on the
recoded values of existing variables.
For example: Age, district, education etc
Transform
Recode into different variables
Recode into same variables
Matching data
– Add variables
Data
Merge files
Add variables
– Add cases
Data
Merge files
Add cases
Food Consumption Score
• Dietary diversity and food frequency
• COMPUTE FC_pulses_days_1=xxxx.
EXECUTE.
• COMPUTE FC_vegetable_days_1=sum(xxxxx,xxxx,xxxxx).
EXECUTE.
• COMPUTE FC_fruit_days_1=sum(xxxxx,xxxxx).
EXECUTE.
• COMPUTE FC_meat_days_1=sum(xxxxxx,xxxxx,XXXXXX).
EXECUTE.
• COMPUTE FC_milk_dairies_days_1=XXXXXX.
EXECUTE.
• COMPUTE FC_sugar_days_1=XXXXXXX.
EXECUTE.
• COMPUTE FC_oil_days_1=XXXX.
EXECUTE.
Syntax FCS
• RECODE FC_main_staple_days_1 FC_pulses_days_1
FC_vegetable_days_1 FC_fruit_days_1 FC_meat_days_1
FC_milk_dairies_days_1 FC_sugar_days_1 FC_oil_days_1
(7 thru Highest=7).
EXECUTE.
• COMPUTE FCS_1=sum((FC_main_staple_days_1*2),
(FC_pulses_days_1*3), (FC_vegetable_days_1*1), (FC_fruit_days_1*1),
(FC_meat_days_1*4), (FC_milk_dairies_days_1*4), (FC_oil_days_1*0.5),
(FC_sugar_days_1*0.5)).
EXECUTE.
• RECODE FCS_1 (Lowest thru 21.00=1) (21 thru 35=2) (35 thru Highest=3)
INTO FC_group.
EXECUTE.