Page 1
SPSSbasic data entryWan Amir Nizam Wan Ahmad MBBCh BAO PhD
Senior Medical Lecturer in Pharmacology
Biomedicine Program ([email protected] )
GTU302/32014-2015
Page 2
wanamir©
Learning objectives
General Outcomes:
Familiar with SPSS software & data entry
Specific Outcomes:
Able to enter the data in the correct way into SPSS data editor
Able to do the basics data editing
Able to change data representation into table and graph
[email protected]
Page 3
wanamir©
Let’s begin
Make sure your PC is switch on!
[email protected]
Page 4
wanamir©
SPSS interface
[email protected]
OR Click start (Window symbol)
All program IBM SPSS Statistics
IBM SPSS Statistics 21
Page 5
wanamir©
SPSS interface
[email protected]
Page 6
wanamir©
SPSS interfaceData editor window
[email protected]
Page 7
wanamir©
Go to case
Go to variable
InsertCases
Select Cases
InsertVariables
ValueLabels
Data editor window
SPSS interface
[email protected]
Page 8
wanamir©
SPSS interfaceData editor window
[email protected]
Page 9
wanamir©
SPSS interface Data editor window – Variable view
[email protected]
Page 10
wanamir©
SPSS interface Data editor window – Data view
[email protected]
Page 11
wanamir©
SPSS interface Output viewer window
[email protected]
Page 12
wanamir©
SPSS interfaceDisplay all statistical result Tables Charts
Allow to edit Save
Access to: Pivot table editor Text output editor Chart editor Move between SPSS and
other application
Output viewer window
[email protected]
Page 13
wanamir©
SPSS interfaceOutput viewer window
Pivot table editor
Chart editorEdit Colour Font Axes Rotation Chart type
[email protected]
Page 14
wanamir©
[email protected]
Page 15
wanamir©
Data entry
step-by-step instructions
[email protected]
Page 16
wanamir©
Dataset
[email protected]
Variables
Data
Page 17
wanamir©
Open SPSSBlinking
cursor Data editor window
[email protected]
Go to variable view to key-in variables
Page 18
wanamir©
Enter variables
1 2 3
OR
NOTED: In variable view!
[email protected]
Page 19
wanamir©
Enter variables
[email protected]
Page 20
wanamir©
Enter variables
Continue entering variables!
Type ‘0’ in value
Type ‘malay’ in label
Continue to fill up value labels
1
2
3
[email protected]
Page 21
wanamir©
Enter variables
Continue entering variables!
Type ‘0’ in value
Type ‘No’ in label
Continue to fill up value labels
1
2
3
[email protected]
Page 22
wanamir©
Enter variables
Go to data view
[email protected]
Make sure all variables type row are: Numeric;Except GENDER variables: String (not number)
Page 23
wanamir©
Enter data
[email protected]
Page 24
wanamir©
Enter data
Choose the 3 races(you already decide in variable view input!)
1
2
Start entering data!
[email protected]
Page 25
wanamir©
Choose the 2 input(you already decide in variable view input!)
Enter data
Continue entering data into the column!
1
2
[email protected]
Page 26
wanamir©
Enter
data
ValueLabels
[email protected]
You can view the ‘coding’ that you have decided!!
Page 27
wanamir©
Enter data
[email protected]
Page 28
wanamir©
Save data
Type the file name as you want to
[email protected]
Page 29
wanamir©
Saved data
[email protected]
Page 30
wanamir©
Tables and Graphs
step-by-step instructions
[email protected]
Page 31
wanamir©
Tables
How to present the data into table?
[email protected]
Page 32
wanamir©
Tables
Repeat same process:Select ‘HEIGHT’ & ‘WEIGHT’
1
23
4
[email protected]
Page 33
wanamir©
The cell statistics preselected:MeanNumber of CasesStandard deviation
Tables
[email protected]
Page 34
wanamir©
Tables
[email protected]
Page 35
wanamir©
Tables
& Graph
What about graph?
[email protected]
Page 36
wanamir©
Tables
& Graph
1
2
3
4
5
[email protected]
e.g.: races
Page 37
wanamir©
Tables
& Graph
[email protected]
Page 38
wanamir©
Tables
& Graph
0 = ‘Malay’ 1 = ‘Chinese’ 2 = ‘Indian’
[email protected]
Remember our ‘coding’!!
Page 39
wanamir©
Tables
& Graph
Double click!
How to edit graph?
Chart editor window
[email protected]
Page 40
wanamir©
Data editing
Sort and split
[email protected]
Page 41
wanamir©
Quick case selection e.g. case number 8
Type ‘8’
[email protected]
Page 42
wanamir©
Quick case selection
For quick variable selection, choose:Edit – Go to variables – choose which variables
[email protected]
e.g. case number 8
Page 43
wanamir©
Sorting cases e.g. age to be in ascending order
[email protected]
Page 44
wanamir©
Sorting cases e.g. age to be in ascending order
[email protected]
Page 45
wanamir©
Sorting cases e.g. age to be in ascending order
[email protected]
Page 46
wanamir©
Split file e.g. Gender into male and female
[email protected]
Page 47
wanamir©
Split file e.g. Gender into male and female
[email protected]
Page 48
wanamir©
Split file e.g. Gender into male and female
[email protected]
Page 49
wanamir©
Copying graph and tables into Word/Power point
step-by-step instructions
[email protected]
Page 50
wanamir©
[email protected]
Copying table
Page 51
wanamir©
[email protected]
Select table to copye.g: Case processing summary
1
Right-click on the table2
Page 52
wanamir©
[email protected]
Choose “Copy”
-if to copy to Word file and keep original table format (editable)
Choose “Copy Special”
-if to copy as image (non-editable)
-also to copy to power point
Page 53
wanamir©
[email protected]
In Word - editable
Right-click on WORD
Page 54
wanamir©
[email protected]
Edit the table Right click; e.g. cases row
In Word - editable
Choose your preferences
Page 55
wanamir©
[email protected]
In power point – non editable
Page 56
wanamir©
[email protected]
Copying graph
Right-click on the graph
Page 57
wanamir©
[email protected]
Word
Power point
Page 58
wanamir©
Editing saved data
step-by-step instructions
[email protected]
Page 59
wanamir©
Edit datae.g. new variables: BMI
How to enter a new variables?
BMI variable between weight & IHD
Click on IHD column
[email protected]
Page 60
wanamir©
Edit data
1
2
3
e.g. new variables: BMI
You have to enter the new variable’s data
[email protected]
Page 61
wanamir©
Edit data
Enter the variabledata into the row!
Return to ‘Data View’
e.g. new variables: BMI
[email protected]
Page 62
wanamir©
Edit data
Enter the new data in the new variable column
e.g. new variables: BMI
[email protected]
Page 63
wanamir©
Edit dataMissing case?
How to enter a missing data?
e.g. data between 7 & 8
Click on 7th row
[email protected]
Page 64
wanamir©
Edit dataMissing case?
Enter the missing data in the new data row
[email protected]
Page 65
wanamir©
[email protected]
Page 66
wanamir©
Things to note about decimal point in
your writing!
1 decimal point – ONLY for % (e.g. 51.3 %)
3 decimal points – ONLY for p value (e.g. p<0.001)
2 decimal points – for other values
[email protected]
Page 67
wanamir©
Before you leave!!!
1. Delete the SPSS file you saved
2. Switch off your PC
[email protected]
Page 68
wanamir©
Questions:Email me: [email protected] a discussion: ext 7652
[email protected]