T-Test

 

T-tests assess whether the means of two groups are statistically different from each other.

  • To perform a T-test, click on Analyze. Then click on Compare Means. For this demonstration we will perform an independent samples T-test. Therefore, click on Independent-Samples T Test.

 

 

  • The Independent-Samples T Test dialogue box will appear.

 

 

  • For this demonstration, we want to test if the mean age between those who are married and those who are not are statistically different. Therefore, age is the test variable and marital status is the grouping variable. Add Age in years to the Test Variable(s): text box by clicking the button with the right arrow.

 

 

  • Add Marital status to the Grouping Variable: text box by using the button with the right arrow next to the grouping variable text box.

 

 

  • SPSS does not know automatically what two groups you want to compare means. To tell SPSS which groups we want, we click on Define Groups button under the Grouping Variable: text box.

 

 

  • For this dataset, 0 indicated that a participant was unmarried and 1 indicated that they were married. Enter 0 for Group 1: and 1 for Group 2:.

 

 

  • Click Continue.

 

 

  • Optional: You can select additional options or bootstrap by clicking the corresponding buttons on the right.

 

 

  • Click OK.

 

 

  • The results will appear in the Output window.