introduction to spss 22 - step by steps

68
SPSS basic data entry Wan Amir Nizam Wan Ahmad MBBCh BAO PhD Senior Medical Lecturer in Pharmacology Biomedicine Program ([email protected]) GTU302/3 2014-2015

Upload: wan-amir

Post on 12-Jul-2015

694 views

Category:

Education


3 download

TRANSCRIPT

Page 1: Introduction to SPSS 22 - step by steps

SPSSbasic data entryWan Amir Nizam Wan Ahmad MBBCh BAO PhD

Senior Medical Lecturer in Pharmacology

Biomedicine Program ([email protected])

GTU302/32014-2015

Page 2: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

wanamir©

Let’s begin

Make sure your PC is switch on!

[email protected]

Page 4: Introduction to SPSS 22 - step by steps

wanamir©

SPSS interface

[email protected]

OR Click start (Window symbol)

All program IBM SPSS Statistics

IBM SPSS Statistics 21

Page 5: Introduction to SPSS 22 - step by steps

wanamir©

SPSS interface

[email protected]

Page 6: Introduction to SPSS 22 - step by steps

wanamir©

SPSS interfaceData editor window

[email protected]

Page 7: Introduction to SPSS 22 - step by steps

wanamir©

Go to case

Go to variable

InsertCases

Select Cases

InsertVariables

ValueLabels

Data editor window

SPSS interface

[email protected]

Page 8: Introduction to SPSS 22 - step by steps

wanamir©

SPSS interfaceData editor window

[email protected]

Page 9: Introduction to SPSS 22 - step by steps

wanamir©

SPSS interface Data editor window – Variable view

[email protected]

Page 10: Introduction to SPSS 22 - step by steps

wanamir©

SPSS interface Data editor window – Data view

[email protected]

Page 11: Introduction to SPSS 22 - step by steps

wanamir©

SPSS interface Output viewer window

[email protected]

Page 12: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

wanamir©

SPSS interfaceOutput viewer window

Pivot table editor

Chart editorEdit Colour Font Axes Rotation Chart type

[email protected]

Page 14: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

Page 15: Introduction to SPSS 22 - step by steps

wanamir©

Data entry

step-by-step instructions

[email protected]

Page 16: Introduction to SPSS 22 - step by steps

wanamir©

Dataset

[email protected]

Variables

Data

Page 17: Introduction to SPSS 22 - step by steps

wanamir©

Open SPSSBlinking

cursor Data editor window

[email protected]

Go to variable view to key-in variables

Page 18: Introduction to SPSS 22 - step by steps

wanamir©

Enter variables

1 2 3

OR

NOTED: In variable view!

[email protected]

Page 19: Introduction to SPSS 22 - step by steps

wanamir©

Enter variables

[email protected]

Page 20: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

wanamir©

Enter data

[email protected]

Page 24: Introduction to SPSS 22 - step by steps

wanamir©

Enter data

Choose the 3 races(you already decide in variable view input!)

1

2

Start entering data!

[email protected]

Page 25: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

wanamir©

Enter

data

ValueLabels

[email protected]

You can view the ‘coding’ that you have decided!!

Page 27: Introduction to SPSS 22 - step by steps

wanamir©

Enter data

[email protected]

Page 28: Introduction to SPSS 22 - step by steps

wanamir©

Save data

Type the file name as you want to

[email protected]

Page 29: Introduction to SPSS 22 - step by steps

wanamir©

Saved data

[email protected]

Page 30: Introduction to SPSS 22 - step by steps

wanamir©

Tables and Graphs

step-by-step instructions

[email protected]

Page 31: Introduction to SPSS 22 - step by steps

wanamir©

Tables

How to present the data into table?

[email protected]

Page 32: Introduction to SPSS 22 - step by steps

wanamir©

Tables

Repeat same process:Select ‘HEIGHT’ & ‘WEIGHT’

1

23

4

[email protected]

Page 33: Introduction to SPSS 22 - step by steps

wanamir©

The cell statistics preselected:MeanNumber of CasesStandard deviation

Tables

[email protected]

Page 34: Introduction to SPSS 22 - step by steps

wanamir©

Tables

[email protected]

Page 35: Introduction to SPSS 22 - step by steps

wanamir©

Tables

& Graph

What about graph?

[email protected]

Page 36: Introduction to SPSS 22 - step by steps

wanamir©

Tables

& Graph

1

2

3

4

5

[email protected]

e.g.: races

Page 37: Introduction to SPSS 22 - step by steps

wanamir©

Tables

& Graph

[email protected]

Page 38: Introduction to SPSS 22 - step by steps

wanamir©

Tables

& Graph

0 = ‘Malay’ 1 = ‘Chinese’ 2 = ‘Indian’

[email protected]

Remember our ‘coding’!!

Page 39: Introduction to SPSS 22 - step by steps

wanamir©

Tables

& Graph

Double click!

How to edit graph?

Chart editor window

[email protected]

Page 40: Introduction to SPSS 22 - step by steps

wanamir©

Data editing

Sort and split

[email protected]

Page 41: Introduction to SPSS 22 - step by steps

wanamir©

Quick case selection e.g. case number 8

Type ‘8’

[email protected]

Page 42: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

wanamir©

Sorting cases e.g. age to be in ascending order

[email protected]

Page 44: Introduction to SPSS 22 - step by steps

wanamir©

Sorting cases e.g. age to be in ascending order

[email protected]

Page 45: Introduction to SPSS 22 - step by steps

wanamir©

Sorting cases e.g. age to be in ascending order

[email protected]

Page 46: Introduction to SPSS 22 - step by steps

wanamir©

Split file e.g. Gender into male and female

[email protected]

Page 47: Introduction to SPSS 22 - step by steps

wanamir©

Split file e.g. Gender into male and female

[email protected]

Page 48: Introduction to SPSS 22 - step by steps

wanamir©

Split file e.g. Gender into male and female

[email protected]

Page 49: Introduction to SPSS 22 - step by steps

wanamir©

Copying graph and tables into Word/Power point

step-by-step instructions

[email protected]

Page 50: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

Copying table

Page 51: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

Select table to copye.g: Case processing summary

1

Right-click on the table2

Page 52: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

In Word - editable

Right-click on WORD

Page 54: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

Edit the table Right click; e.g. cases row

In Word - editable

Choose your preferences

Page 55: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

In power point – non editable

Page 56: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

Copying graph

Right-click on the graph

Page 57: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

Word

Power point

Page 58: Introduction to SPSS 22 - step by steps

wanamir©

Editing saved data

step-by-step instructions

[email protected]

Page 59: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

wanamir©

Edit data

1

2

3

e.g. new variables: BMI

You have to enter the new variable’s data

[email protected]

Page 61: Introduction to SPSS 22 - step by steps

wanamir©

Edit data

Enter the variabledata into the row!

Return to ‘Data View’

e.g. new variables: BMI

[email protected]

Page 62: Introduction to SPSS 22 - step by steps

wanamir©

Edit data

Enter the new data in the new variable column

e.g. new variables: BMI

[email protected]

Page 63: Introduction to SPSS 22 - step by steps

wanamir©

Edit dataMissing case?

How to enter a missing data?

e.g. data between 7 & 8

Click on 7th row

[email protected]

Page 64: Introduction to SPSS 22 - step by steps

wanamir©

Edit dataMissing case?

Enter the missing data in the new data row

[email protected]

Page 65: Introduction to SPSS 22 - step by steps

wanamir©

[email protected]

Page 66: Introduction to SPSS 22 - step by steps

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: Introduction to SPSS 22 - step by steps

wanamir©

Before you leave!!!

1. Delete the SPSS file you saved

2. Switch off your PC

[email protected]

Page 68: Introduction to SPSS 22 - step by steps

wanamir©

Questions:Email me: [email protected] a discussion: ext 7652

[email protected]