Unit 3 · Compare groups

How to run an independent-samples t-test in SPSS

Run and interpret an independent-samples t-test in SPSS, including Levene's test, Cohen's d and an APA write-up.

Pro lessonAbout 5 minutes7 practice questions

Independent-samples t-test

Use it when two separate groups each give one score, and you want to know whether the group means differ. Example: online vs in-person students' exam scores.

Independent-Samples T Test
Variables
Participant ID [id]
Age in years [age]
▶
Test Variable(s):1
Exam score (%) [score]
▶
Grouping Variable:2
teaching(1 2)
Define Groups…3
Options…Bootstrap…
✓Estimate effect sizes4
OKPaste5ResetCancelHelp
  1. 1
    Test Variable(s)The outcome you're comparing. It must be Scale, such as score.
  2. 2
    Grouping VariableThe variable that splits people into the two groups.
  3. 3
    Define Groups…Tells SPSS which codes to compare: type 1 for Group 1 and 2 for Group 2. Until you do, it shows teaching(? ?) and OK stays greyed out.
  4. 4
    Estimate effect sizesAvailable in SPSS 27 and later. Adds Cohen's d so you can report how big the difference is.
  5. 5
    PasteGives you the T-TEST syntax.

Keep going with Pro

1 more annotated SPSS screen and 7 interactive practice questions are part of Pro, along with every other unit and unlimited hearts.

Unlock with Pro

More in Compare groups