statistical package for the social sciences (spss)

40
Statistical Package for the Social Sciences (SPSS)

Upload: others

Post on 16-Jan-2022

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Statistical Package for the Social Sciences (SPSS)

Statistical Package for the

Social Sciences (SPSS)

Page 2: Statistical Package for the Social Sciences (SPSS)

Live Poll Questions Instruction

(1) Please go to

http://pollev.com

(2) Code for each option

Page 3: Statistical Package for the Social Sciences (SPSS)

Topics

Page 4: Statistical Package for the Social Sciences (SPSS)

SPSS Environment

Starting SPSS

Page 5: Statistical Package for the Social Sciences (SPSS)

SPSS Environment

The Data Editor

Page 6: Statistical Package for the Social Sciences (SPSS)

SPSS Environment

The Variable View

Page 7: Statistical Package for the Social Sciences (SPSS)

SPSS Environment

The Viewer Window

Page 8: Statistical Package for the Social Sciences (SPSS)

SPSS Environment

Running Analyses – Two ways to do things in SPSS

Point and Click Syntax

Page 9: Statistical Package for the Social Sciences (SPSS)

Data Entry

Creating variables

Go to Variable View

Enter variable information

Be sure to include Name, Type, Label, and Measure

Input data

Go to Data View

Enter data in appropriate cell

Columns- represent a variable

Rows- represent data from one entity

Page 10: Statistical Package for the Social Sciences (SPSS)

Variable Types

Numeric

Numbers (e.g. 7, 0, 120)

String

Letters (e.g. ‘Andy’, ‘Idiot’)

Currency

Currency (e.g. £20, $34, €56)

Date

Dates (e.g. 21-06-1973, 06-21-73, 21-Jun-1973)

Page 11: Statistical Package for the Social Sciences (SPSS)

Creating a String Variable

Page 12: Statistical Package for the Social Sciences (SPSS)

Creating a Data Variable

Page 13: Statistical Package for the Social Sciences (SPSS)

Creating a Coding Variable

Page 14: Statistical Package for the Social Sciences (SPSS)

Frequency Histogram

Click Analyze, Descriptive Statistics,

Frequencies to get to the box below:

Page 15: Statistical Package for the Social Sciences (SPSS)

Descriptive Statistics

Click Analyze, Descriptive Statistics,

Descriptives to get to the box below:

Page 16: Statistical Package for the Social Sciences (SPSS)

Live Poll Question #1

Page 17: Statistical Package for the Social Sciences (SPSS)

Topics

Page 18: Statistical Package for the Social Sciences (SPSS)

Independent t-test (Prior to ANOVA)

Used when there are two

experimental conditions and

different participants were

assigned to each condition

Data set-up:

Page 19: Statistical Package for the Social Sciences (SPSS)

Independent t-test

Running the Analysis:

◦ Click Analyze, Compare Means, Independent-

Samples t-test to get to the box below.

Page 20: Statistical Package for the Social Sciences (SPSS)

Independent t-test

Interpreting the Results

There was not a significant difference

between the means, t(22) = -1.68, p > .05.

Page 21: Statistical Package for the Social Sciences (SPSS)

Dependent t-test

Used when there are two experimental conditions and the same participants took part in both conditions of the experiment

Data set-up:

Page 22: Statistical Package for the Social Sciences (SPSS)

Dependent t-test

Running the Analysis

◦ Click Analyze, Compare Means, Paired-Samples t-

test to get to the box below.

Page 23: Statistical Package for the Social Sciences (SPSS)

Dependent t-test

Interpreting the Results

There was a

significant difference

between the means,

t(11) = -2.47, p < .05.

Page 24: Statistical Package for the Social Sciences (SPSS)

One-Way Independent ANOVA

Used when there is one IV and two or more

treatment groups and subjects receive only

one of the different treatment conditions

Two methods for performing this analysis:

◦ Point and click

◦ Syntax

Page 25: Statistical Package for the Social Sciences (SPSS)

One-Way Independent ANOVA

Point and click: Syntax:

Data Set-up

Page 26: Statistical Package for the Social Sciences (SPSS)

One-Way Independent ANOVA

Running the Analysis (Point and click)

◦ Click Analyze, Compare Means, One-Way ANOVA

to get box below:

Alternative F-

ratios if

assumption of

homogeneity of

variance

violated

Page 27: Statistical Package for the Social Sciences (SPSS)

One-Way Independent ANOVA

Running the Analysis (Point and click)

This box allows you to

conduct planned comparisons.

This box allows you to

conduct post hoc procedures

NOTE: In theory, if you do planned comparisons you shouldn’t need to do post hoc tests.

Conversely, if you do post hoc tests, there should be no need to do planned comparisons.

Page 28: Statistical Package for the Social Sciences (SPSS)

One-Way Independent ANOVA

Interpreting the Results

Levene’s statistic is not

significant indicating that

the variances are not

statistically significant.

This means we can

trust the F-ratio in the

main ANOVA table

and can ignore the

table on the left.

Page 29: Statistical Package for the Social Sciences (SPSS)

One-Way Independent ANOVA

Interpreting the Results

There was a significant

effect of Viagra on levels

of libido, F(2,12)= 5.12,

p<.05.

Tukey’s post hoc

analysis revealed

that the high

dose group had

greater libido

than the placebo

group, p<.05.

Page 30: Statistical Package for the Social Sciences (SPSS)

One-Way Independent ANOVA

Running the Analysis (Syntax)

◦ First, name the sources of variation for an AS design:

A

S/A

◦ Syntax for analysis hypothetical analysis with 3

treatment groups and 5 subjects per group:

manova score by A(1,3) S(1,5)

/design = A vs 1, S w A = 1.

manova libido by dose (1,3) subject(1,5)

/design = dose vs 1, subject w dose = 1.

Page 31: Statistical Package for the Social Sciences (SPSS)

One-Way Independent ANOVA

Running the Analysis◦ Click File, New, Syntax to get window below.

◦ Enter syntax, highlight selection, and press

to run analysis.

◦ This should produce same ANOVA as the

point and click method.

Data set-up

Page 32: Statistical Package for the Social Sciences (SPSS)

Live Poll Question #2

Page 33: Statistical Package for the Social Sciences (SPSS)

Topics

Page 34: Statistical Package for the Social Sciences (SPSS)

Why Use Follow-Up Tests?

The F-ratio tells us only that the

experiment was successful

◦ i.e., group means were different

It does not tell us specifically which

group means differ from which.

We need additional tests to find out

where the group differences lie.

Page 35: Statistical Package for the Social Sciences (SPSS)

How to Choose Follow-up Tests?

Multiple Comparisons (t-tests)

◦ Type I error rate will be inflated

Orthogonal Contrasts/Comparisons

◦ Hypothesis driven

◦ Planned a priori

Post Hoc Tests

◦ Not Planned (no hypothesis)

◦ Compare all pairs of means

Trend Analysis

Page 36: Statistical Package for the Social Sciences (SPSS)

Why Not Use Lots t-Tests On Every Pair Of Groups?

If we want to compare several means why don’t we compare pairs of means with t-tests?

◦ Can’t look at several independent variables.

◦ Inflates the Type I error rate.

1

2

3

1 2

2 3

1 3

Prob. of Type I error

Overall Type I error: (5%) x (5%) x (5%) = 14.3% (inflated from 5% to 14.3%)

5% (0.05)

5% (0.05)

5% (0.05)

Page 37: Statistical Package for the Social Sciences (SPSS)

Inflated Error Rates (Familywise Error Rates)

)3(95.01Error Familywise nn

%5.26)95.0(1

%6.22)95.0(1

%5.18)95.0(1

%3.14)95.0(1

6

5

4

3

** Probability of NOT making Type I error for 3 t-Tests = 0.95 x 0.95 x 0.95 = 0.857

** Overall Type I error = 1- 0.857 = 0.143

Page 38: Statistical Package for the Social Sciences (SPSS)

Live Poll Question #3

Page 39: Statistical Package for the Social Sciences (SPSS)

Topics

Page 40: Statistical Package for the Social Sciences (SPSS)

Practice Time (Omnibus ANOVA + Post-hoc Test)

Data: Lab2_Data.sav

Variables (Vb.):

DV (Dependent Vb.) = Libido [Corresponding Vb. Name in SPSS => libido]

IV (Independent Vb.) = Dose of Viaga [Corresponding Vb. Name in SPSS => dose]

1. Click Analyze, Compare Means, One-Way ANOVA

2. Click on the DV (libido) & click on the arrow near the “Dependent List” column. =>

libido variable will be selected in the “Dependent List”

3. Click on the IV (dose) & click on the arrow near the “Factor” column => dose variable

will be selected in the “Dependent List”

4. Click on Options tab, select 1st, 3rd , 4th & 5th item in “Statistics” column

5. Check “Means plot” option

6. Select 1st item (i.e., Exclude cases analysis by analysis)

7. Click on Continue tab

------------------- The above steps are ONLY for Omnibus ANOVA. ------------------

8. Click on Post Hoc tab

9. Choose Tukey in “Equal Variances Assumed” column

10. Click on Continue tab

11. Click on OK tab