79
Introduction to SPSS Katie Handwerger Why n’ How February 19, 2009

Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Introduction to SPSS

Katie HandwergerWhy n’ HowFebruary 19, 2009

Page 2: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Overview

Setting up a data fileFrequencies/DescriptivesOne-sample T-testPaired-samples T-testIndependent-samples T-testOne-way ANOVA

Page 3: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Study

Three Diagnostic GroupsMDD, Bipolar, and Dysthymia

Subjects receive either Drug or Placebo

Measure of success:Beck Depression Inventory (BDI) score

BDI Assessed at 3 points:Pre TreatmentAfter 4 WeeksAfter 8 Weeks

Page 4: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Setting Up A Data File

Page 5: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Setting Up A Data File

Important: Always Use Labels

Page 6: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Setting Variable Types

Page 7: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Setting Value Labels

Page 8: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Setting Value Labels

Important: THESE VALUESARE ARBITRARY!!

Page 9: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Accounting for Missing Variables

Important: Account forMissing Variables withA Value That Would NeverBe Found in the Dataset

Page 10: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Setting Up A Date File

Page 11: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Setting Up A Data File

New Variable LabelsWill Appear Up Top

Page 12: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Setting Up A Data File

Page 13: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Viewing Value Labels

Page 14: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Viewing Value Labels

Page 15: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Now we have our data set upWhat can we do with it???

Page 16: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Descriptives

MeanMedianModeRangeSkewness

Measure of the asymmetry of the probability distributionGood way to check for outliers

0

2

4

6

8

10

12

14

16

G 1 g 2 g 3 g 4 g 5 g 6 g 7 g 8 g 9 g 1 0 g 1 2 g 1 3 g 1 4 g 1 5 0

2

4

6

8

10

12

14

16

G 1 g 2 g 3 g 4 g 5 g 6 g 7 g 8 g 9 g 1 0 g 1 2 g 1 3 g 1 4 g 1 5

0

2

4

6

8

10

12

14

16

G 1 g 2 g 3 g 4 g 5 g 6 g 7 g 8 g 9 g 1 0 g 1 2 g 1 3 g 1 4 g 1 5

Negative SkewPositive Skew

Page 17: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Running Descriptives

Page 18: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Running Descriptives

Page 19: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Running Descriptives

Page 20: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Descriptives Output

Page 21: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Descriptives Output

Page 22: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Descriptives OutputMissing Values Accounted For

Page 23: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Selecting Only Certain Cases

Page 24: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

What if I only want to include a certain population in my analyses?

i.e. people with SEVERE Depression• Defined as: BDI>40 at pre treatment

Selecting Only Certain Cases

Page 25: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Selecting Only Certain Cases

Page 26: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Selecting Only Certain Cases

Page 27: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Selecting Only Certain Cases

Page 28: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

IMPORTANT NOTE:All analyses after you select certain cases will only include those cases UNTIL you go back and select ALL

Selecting All Cases

Page 29: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Selecting All Cases

Page 30: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

I have BDI Scores at Pre, Week 4, and Week 8What if I want to have a new column that gives me the change from:

Pre to Week 4?Pre to Week 8?

Computing New Variables

Page 31: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Computing New Variables

Page 32: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Computing New Variables

Page 33: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Computing New Variables

Page 34: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Computing New Variables

Don’t Forget To Give Your New Variable a Label!

Page 35: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Computing New Variables

Page 36: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Computing New Variables

Page 37: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Computing New Variables

Page 38: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

T-TestsPaired-Samples

Assesses the difference between the two variables for each caseTests to see if the average difference is sig different from zero.

One SampleComparing Mean Scores to an existing pre-

determined unit

Independent-SamplesComparing Mean of Two Groups (IV) on a DV

Page 39: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Paired T-Tests

Two continuous variablesi.e. In the Tx group alone, did subjects display a sig. change in BDI score from pre to Week 4? Week 8?Is the change (difference) from Time 1 to Time 2 is sig. different from zero

Page 40: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Selecting Cases

Page 41: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Paired-Samples T-Test

Page 42: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Paired-Samples T-Test

Page 43: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Paired-Samples T-Test

Page 44: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Sample T-Test

Question:Does our sample as a whole at pre have BDI scores significantly different from what clinicians deem to be the cutoff for severe depression (BDI=30)?

Page 45: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Sample T-Test

Page 46: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Sample T-Test

Page 47: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Sample T-Test

Page 48: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Independent Samples T-Test

Do two groups different on a continuous measure?

IV = Categorical (Only 2 Groups)DV = Continuous

i.e. Does our sample differ in any important measure pre-treatment on the basis of sex?

i.e. BDI Scores Pre-Treatment•IV = Sex•DV = Pre BDI Score

Page 49: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Independent-Sample T-Test

Page 50: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Independent-Sample T-Test

Page 51: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Independent-Sample T-Test

Page 52: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Independent Samples T-Test

Is there a significant difference in the BDI change score from Pre to Week 4 between those who received the drug and those who were in the placebo group?

• IV = Treatment Group (drug vs placebo)• DV = BDI Change Score

Page 53: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Independent-Sample T-Test

Page 54: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Independent-Sample T-Test

Page 55: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Levene’s Test: homogeneity of variance

Page 56: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Levene’s Test: homogeneity of variance

Page 57: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Way ANOVAIV = CategoricalDV = ContinuousTwo or more groups

Note: An Ind-T-Test can only have 2 groups

i.e. Did the three Diagnostic Groups Differ in Pre-Treatment BDI Scores?

Page 58: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Way ANOVA

Page 59: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Way ANOVA

Page 60: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Way ANOVA

Page 61: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Way ANOVA

Page 62: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Way ANOVA

Page 63: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Post Hoc Tests

Page 64: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Way ANOVA

Page 65: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

One-Way ANOVA

NOTE: Don’t Run Post-HocIf p=ns

Page 66: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Comparing Groups

So we know that the change from Pre to Week 8 was not sig. different between the groupsBUT, was each group’s change statistically significant?

Page 67: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Comparing Groups

Page 68: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Comparing Groups

Page 69: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Comparing Groups

Page 70: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Comparing Groups

Page 71: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Comparing Groups

Page 72: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Strength and direction of a linearrelationship between two continuous variablesPearson product-moment correlation

dividing the covariance of the two variables by the product of their SD

Correlations

Page 73: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Correlations

Page 74: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Correlations

Page 75: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Correlations

Page 76: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

Do NOT Run Correlations on Categorical Variables!!

Important: THESE VALUESARE ARBITRARY!!

Page 77: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

CorrelationsWhat NOT To Do

Page 78: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

CorrelationsWhat NOT To Do

Page 79: Introduction to SPSS€¦ · T-Tests |Paired-Samples zAssesses the difference between the two variables for each case zTests to see if the average difference is sig different from

The End