Introduction to SPSS 22 - step by steps

Preview:

Citation preview

SPSSbasic data entryWan Amir Nizam Wan Ahmad MBBCh BAO PhD

Senior Medical Lecturer in Pharmacology

Biomedicine Program (wanamir@usm.my)

GTU302/32014-2015

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

wanamir@usm.my

wanamir©

Let’s begin

Make sure your PC is switch on!

wanamir@usm.my

wanamir©

SPSS interface

wanamir@usm.my

OR Click start (Window symbol)

All program IBM SPSS Statistics

IBM SPSS Statistics 21

wanamir©

SPSS interface

wanamir@usm.my

wanamir©

SPSS interfaceData editor window

wanamir@usm.my

wanamir©

Go to case

Go to variable

InsertCases

Select Cases

InsertVariables

ValueLabels

Data editor window

SPSS interface

wanamir@usm.my

wanamir©

SPSS interfaceData editor window

wanamir@usm.my

wanamir©

SPSS interface Data editor window – Variable view

wanamir@usm.my

wanamir©

SPSS interface Data editor window – Data view

wanamir@usm.my

wanamir©

SPSS interface Output viewer window

wanamir@usm.my

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

wanamir@usm.my

wanamir©

SPSS interfaceOutput viewer window

Pivot table editor

Chart editorEdit Colour Font Axes Rotation Chart type

wanamir@usm.my

wanamir©

wanamir@usm.my

wanamir©

Data entry

step-by-step instructions

wanamir@usm.my

wanamir©

Dataset

wanamir@usm.my

Variables

Data

wanamir©

Open SPSSBlinking

cursor Data editor window

wanamir@usm.my

Go to variable view to key-in variables

wanamir©

Enter variables

1 2 3

OR

NOTED: In variable view!

wanamir@usm.my

wanamir©

Enter variables

wanamir@usm.my

wanamir©

Enter variables

Continue entering variables!

Type ‘0’ in value

Type ‘malay’ in label

Continue to fill up value labels

1

2

3

wanamir@usm.my

wanamir©

Enter variables

Continue entering variables!

Type ‘0’ in value

Type ‘No’ in label

Continue to fill up value labels

1

2

3

wanamir@usm.my

wanamir©

Enter variables

Go to data view

wanamir@usm.my

Make sure all variables type row are: Numeric;Except GENDER variables: String (not number)

wanamir©

Enter data

wanamir@usm.my

wanamir©

Enter data

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

1

2

Start entering data!

wanamir@usm.my

wanamir©

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

Enter data

Continue entering data into the column!

1

2

wanamir@usm.my

wanamir©

Enter

data

ValueLabels

wanamir@usm.my

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

wanamir©

Enter data

wanamir@usm.my

wanamir©

Save data

Type the file name as you want to

wanamir@usm.my

wanamir©

Saved data

wanamir@usm.my

wanamir©

Tables and Graphs

step-by-step instructions

wanamir@usm.my

wanamir©

Tables

How to present the data into table?

wanamir@usm.my

wanamir©

Tables

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

1

23

4

wanamir@usm.my

wanamir©

The cell statistics preselected:MeanNumber of CasesStandard deviation

Tables

wanamir@usm.my

wanamir©

Tables

wanamir@usm.my

wanamir©

Tables

& Graph

What about graph?

wanamir@usm.my

wanamir©

Tables

& Graph

1

2

3

4

5

wanamir@usm.my

e.g.: races

wanamir©

Tables

& Graph

wanamir@usm.my

wanamir©

Tables

& Graph

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

wanamir@usm.my

Remember our ‘coding’!!

wanamir©

Tables

& Graph

Double click!

How to edit graph?

Chart editor window

wanamir@usm.my

wanamir©

Data editing

Sort and split

wanamir@usm.my

wanamir©

Quick case selection e.g. case number 8

Type ‘8’

wanamir@usm.my

wanamir©

Quick case selection

For quick variable selection, choose:Edit – Go to variables – choose which variables

wanamir@usm.my

e.g. case number 8

wanamir©

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

wanamir@usm.my

wanamir©

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

wanamir@usm.my

wanamir©

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

wanamir@usm.my

wanamir©

Split file e.g. Gender into male and female

wanamir@usm.my

wanamir©

Split file e.g. Gender into male and female

wanamir@usm.my

wanamir©

Split file e.g. Gender into male and female

wanamir@usm.my

wanamir©

Copying graph and tables into Word/Power point

step-by-step instructions

wanamir@usm.my

wanamir©

wanamir@usm.my

Copying table

wanamir©

wanamir@usm.my

Select table to copye.g: Case processing summary

1

Right-click on the table2

wanamir©

wanamir@usm.my

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

wanamir©

wanamir@usm.my

In Word - editable

Right-click on WORD

wanamir©

wanamir@usm.my

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

In Word - editable

Choose your preferences

wanamir©

wanamir@usm.my

In power point – non editable

wanamir©

wanamir@usm.my

Copying graph

Right-click on the graph

wanamir©

wanamir@usm.my

Word

Power point

wanamir©

Editing saved data

step-by-step instructions

wanamir@usm.my

wanamir©

Edit datae.g. new variables: BMI

How to enter a new variables?

BMI variable between weight & IHD

Click on IHD column

wanamir@usm.my

wanamir©

Edit data

1

2

3

e.g. new variables: BMI

You have to enter the new variable’s data

wanamir@usm.my

wanamir©

Edit data

Enter the variabledata into the row!

Return to ‘Data View’

e.g. new variables: BMI

wanamir@usm.my

wanamir©

Edit data

Enter the new data in the new variable column

e.g. new variables: BMI

wanamir@usm.my

wanamir©

Edit dataMissing case?

How to enter a missing data?

e.g. data between 7 & 8

Click on 7th row

wanamir@usm.my

wanamir©

Edit dataMissing case?

Enter the missing data in the new data row

wanamir@usm.my

wanamir©

wanamir@usm.my

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

wanamir@usm.my

wanamir©

Before you leave!!!

1. Delete the SPSS file you saved

2. Switch off your PC

wanamir@usm.my

wanamir©

Questions:Email me: wanamir@usm.mySet a discussion: ext 7652

wanamir@usm.my

Recommended