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 assumptionsappropriately select parametric and non-parametric two-sample tests
appropriately select paired and and unpaired two-sample tests
apply and interpret
lm()
andwilcox.test()
evaluate whether the assumptions of
lm()
are metscientifically report a two-sample test result including appropriate figures
Instructions
-
- 📖 Read Two-Sample tests
-
- 💻 Parametric two-sample test
- 💻 Non-parametric two-sample test
- 💻 Parametric paired-sample test
-
💻 Appropriately test whether a genetic modification was successful in increasing omega 3 fatty acids in Cannabis sativa.
💻 ….