Lesson 28: T-tests and Nonparametric Comparisons

Overview Section

In this lesson, we learn how to use the TTEST procedure for comparing the population means of two groups when there is reason to believe that the sampling distribution of the means is at least approximately normally distributed. In the cases in which we wouldn't be able to sleep at night making that assumption, we learn how to use the NPAR1WAY procedure for comparing the medians of the two groups. We also learn how to use SAS to randomly assign our experimental units (often, which are people!) to one of two treatment groups.

Objectives

Upon completion of this lesson, you should be able to:

  • use the TTEST procedure to conduct a two-sample t-test
  • know how a data set must be structured in order to use the TTEST procedure to conduct a two-sample t-test
  • use the TTEST procedure to conduct a paired t-test
  • know how a data set must be structured in order to use the TTEST procedure to conduct a paired t-test
  • read the basic output that arises from invoking the TTEST procedure
  • use the NPAR1WAY procedure to conduct a Wilcoxon rank-sum test
  • read the basic output that arises from invoking the NPAR1WAY procedure
  • use the RANUNI function to randomly assign our experimental units (often, which are people!) to one of two treatment groups

Textbook Reference Section

 Chapter 6 of the textbook.