Analyses using SPSS version 19 Chiara Haller, Harvard University.

22
Analyses using SPSS version 19 Chiara Haller, Harvard University

Transcript of Analyses using SPSS version 19 Chiara Haller, Harvard University.

Page 1: Analyses using SPSS version 19 Chiara Haller, Harvard University.

Analyses using SPSS version 19

Chiara Haller, Harvard University

Page 2: Analyses using SPSS version 19 Chiara Haller, Harvard University.

2

Objectives

Knowledge:

– How to use statistical analyses logically

– How to create/structure a dataset

– How to clean up the dataset

– How to create frequency tables

– Descriptive statistics:

– Graphs (box-plot, dispersion diagrams)

– Stratify the analysis

Literature: Introduction to SPSS (Andy Field)

Page 3: Analyses using SPSS version 19 Chiara Haller, Harvard University.

3

Data acquisition

Name Date of Birth Weight/height Sex

Type it directly into SPSS? Into Excel and - Import the data

- Copy the data into SPSS

Whatever you decide, keep a back up of your original dataset!!

Page 4: Analyses using SPSS version 19 Chiara Haller, Harvard University.
Page 5: Analyses using SPSS version 19 Chiara Haller, Harvard University.

5

Missing data

Input a value which must not be confused with any other value.

For example giving it a coding which does not exist in the rest of

the data (i.e., -99).

Attention: Don’t forget to tell SPSS that these are missings!

means without correct coding

Page 6: Analyses using SPSS version 19 Chiara Haller, Harvard University.

6

The Computefunction

Calculate scores on

behalf of existing

variables

Example: Calculate

BMI on behalf of the

variables weight and

height

Page 7: Analyses using SPSS version 19 Chiara Haller, Harvard University.

7

Commande RECODE

Recode Variables

Example: Recode

height into 3

categories

Page 8: Analyses using SPSS version 19 Chiara Haller, Harvard University.

8

The syntax

It’s possible to keep all the analyses in a file Instead of OK, press PASTE, and your commands are being

opened as syntax, which can now be saved.

There are 3 windows you work with on SPSS:– Dataset: Variable view, data view– Output– Syntax

Each of these windows can be saved.

Page 9: Analyses using SPSS version 19 Chiara Haller, Harvard University.

9

Descriptive statistics

Mean

Variance / standard deviation

Minimum / Maximum

… (click options for more)

Page 10: Analyses using SPSS version 19 Chiara Haller, Harvard University.
Page 11: Analyses using SPSS version 19 Chiara Haller, Harvard University.
Page 12: Analyses using SPSS version 19 Chiara Haller, Harvard University.
Page 13: Analyses using SPSS version 19 Chiara Haller, Harvard University.

13

Box-plot

Minimal Value

Mediane

Lower quartile (1st quartile

Upper quartile (3rd quartile)

Extreme Values

¼ (top 25%)

¼

¼«interquartile range»

¼ (bottom 25%)

Page 14: Analyses using SPSS version 19 Chiara Haller, Harvard University.
Page 15: Analyses using SPSS version 19 Chiara Haller, Harvard University.
Page 16: Analyses using SPSS version 19 Chiara Haller, Harvard University.

16

Scatter Plot

Page 17: Analyses using SPSS version 19 Chiara Haller, Harvard University.
Page 18: Analyses using SPSS version 19 Chiara Haller, Harvard University.
Page 19: Analyses using SPSS version 19 Chiara Haller, Harvard University.

19

Stratify the analysis

It is often useful to split a sample in several sub-samples

Three possibilities:– Split the file– Select the preferred observations– Perform the analysis by stratifying the variable

Page 20: Analyses using SPSS version 19 Chiara Haller, Harvard University.

20

Split files

Exercise:

Re-analyze the descriptive statistics

Page 21: Analyses using SPSS version 19 Chiara Haller, Harvard University.

21

Select the preferred observations

Exercise:

Re-analyze the descriptive statistics

Page 22: Analyses using SPSS version 19 Chiara Haller, Harvard University.

THE END

22