Independent-Samples T Test Define Groups

For numeric grouping variables, define the two groups for the t test by specifying two values or a cutpoint:

  • Use specified values. Enter a value for Group 1 and another value for Group 2. Cases with any other values are excluded from the analysis. Numbers need not be integers (for example, 6.25 and 12.5 are valid).
  • Cutpoint. Enter a number that splits the values of the grouping variable into two sets. All cases with values that are less than the cutpoint form one group, and cases with values that are greater than or equal to the cutpoint form the other group.

For string grouping variables, enter a string for Group 1 and another value for Group 2, such as yes and no. Cases with other strings are excluded from the analysis.

Defining Groups for an Independent-Samples T Test

This feature requires Statistics Base Edition.

  1. From the menus choose:

    Analyze > Compare Means > Independent-Samples T Test...

  2. Select a grouping variable and then click Define Groups.
  3. Enter the values to define the groups.