Chapter 6  Inferential Statistics – Two-Sample Tests

Introduction

Conducting a Two-Sample t-test

Testing the Assumptions for a t-test

Customizing the Output from ODS Statistical Graphics

Conducting a Paired t-test

Assumption Violations

Conclusions

Introduction

This chapter covers most of the popular two-sample tests, for paired and unpaired samples. If the assumptions for these tests are not met, SAS provides several non-parametric tests that are covered in Chapter 12.

Conducting a Two-Sample t-test

Let’s start with a simple two-sample, unpaired t-test. For this example, you will compare the systolic blood pressure (SBP) and diastolic blood pressure (DBP) between the males and females (Gender) in the blood_pressure data set.

Here is the program: ...

Get SAS Statistics by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.