Overview

Two-sample tests

This week you will how to use and interpret the general linear model when the explanatory (x) variable is categorical with two possible values. These tests are also known as t-tests. Just as with single linear regression, the response variable is continuous, and the model puts a line of best through data and has two parameters called the intercept and the slope. These have the same in interpretation as they do in linear regression. The intercept is one of the group means and the slope is the difference between that mean and the other group mean. You will also learn about the non-parametric tests we use when the assumptions of the general linear model are not met.

Learning objectives

The successful student will be able to:

  • understand the principles of two-sample tests

  • appreciate that two-sample tests with lm() are based on the normal distribution and thus have assumptions

  • appropriately select parametric and non-parametric two-sample tests

  • appropriately select paired and and unpaired two-sample tests

  • apply and interpret lm()and wilcox.test()

  • evaluate whether the assumptions of lm() are met

  • scientifically report a two-sample test result including appropriate figures

Instructions

  1. Prepare

    1. 📖 Read Two-Sample tests
  2. Workshop

    1. 💻 Parametric two-sample test
    2. 💻 Non-parametric two-sample test
    3. 💻 Parametric paired-sample test
  3. Consolidate

    1. 💻 Appropriately test whether a genetic modification was successful in increasing omega 3 fatty acids in Cannabis sativa.

    2. 💻 ….