Note: Lectures and exercises classes are both for master students enrolled in the course Applied Statistics, block 2, 2020 and for PhD students on Statistical methods for the Biosciences I, block 2, 2020.
Guide1data containing the datasets from the book. To load a particular dataset from an R session you may use a command like load("beedata.rda"). If you are working in R from the directory that contains the Guide1data folder you have to write load("Guide1data/beedata.rda"). Use Session -> Set Working Directory from the top menu of RStudio to change the current Working Directory if necessary.| Session number | Date | Topic | Book pages | Details |
|---|---|---|---|---|
| 1 | November 18, 2020 | Basic principles | Chapters 1, 3, and 4 | link |
| 2 | November 25, 2020 | Counts and proportions | Chapter 6 (possibly skipping 6.1 and 6.3) | link |
| 3 | December 2, 2020 | Categorical regression | Chapter 10 (skipping 10.1.2 and 10.1.3) | link |
| 4 | December 9, 2020 | Regression analysis + Analysis of Variance | Chapters 7 | link |
| 5 | December 16, 2020 | Random effects + Repeated measurements | Chapter 9 (skipping 9.4, 9.6 and 9.7) | link |
| 6 | January 6, 2021 | Non-linear regression + Design of Experiments + Mediation and Confounding | Chapters 11 | link |
Link to online teaching (lectures)
Link to online teaching (exercise classes at 12:45)
Link to online teaching (exercise with TA / Phillip)
I suggest that you always start by using the first link for exercise classes when you log on at 12:45!
Slides
Exercise sheet
Data (from lectures and exercises)
R - programs (for lectures and some exercises)
Link to online teaching (lectures)
Link to online teaching (exercise classes at 12:45 by Bo Markussen)
Link to online teaching (exercise classes at 12:45 by Phillip)
LabApplStat R-package (by Bo Markussen)
Bo Markussen (who developed the teaching material for this course) has created an R-package LabApplStat that you are asked to install on your computer.
If you are using the latest version of R (4.0.3), and you have installed the devtools R-package on your computer, then you should be able to install LabApplStat directly from github by running
devtools::install_github("bomarkussen/LabApplStat",upgrade="never")
You may also save the following tar.gz-file and install the package by running
install.packages("myfolder/LabApplStat_1.4.0.tar.gz", repos = NULL, type = "source")
Slides
Papers
Exercise sheet
Data (from lectures and exercises)
R - programs (for lectures and some exercises)
Important:
Exercise classes on December 2, 2020 are cancelled. Lectures have been moved until afternoon (12:45) and you have to use the following link.
Slides
Exercise sheet
Data (from lectures and exercises)
Mortality of beetles (Data example 1 - to be used also for Exercise 3.1): beetle.txt - beetle_long.txt - beetle_verylong.txt
Risk of company default (Data example 2): Company_default.csv
Hypertension (Data example 3): hypertension.txt
Taste of cheese (Data example 4): cheese.txt
Number of greenflies on lettuce leaves (Data example 5): greenflies.txt
Data for Exercise 3.3: GLA.txt
Data for Exercise 3.4: walks.txt
Data for Exercise 3.5: particles.txt
R - programs (for lectures and some exercises)
Mortality of beetles (Data example 1): beetle.R
Risk of company default (Data example 2): Company_default.R
Hypertension (Data example 3): hypertension.R
Taste of cheese (Data example 4): cheese.R
Number of greenflies on lettuce leaves (Data example 5): greenflies.R
R-script to be used for Exercise 3.2: exercise3_2.R
Solution to Exercise 3.2: solution3_2.R
Link to lectures
Link to exercises with Phillip.
Link to exercises with Bo.
Exercise classes start at 12.45.
You are in the same exercise class as you were last time. You can see what class you belong to in this document.
Slides
Exercise sheet
Bo and I will walk you through exercises 4.1 and/or (depending on time) 4.2 at the end of the class.
All R scripts, data files and exercise solutions (R scripts) are available in this zip file: download
For anyone attending my class: I live-coded a small script when we walked through exercises 4.1 and 4.2, which is available here: download
Link to lectures
Link to exercises with Phillip.
Link to exercises with Bo.
Slides
Exercise sheet
We will go through exercise 5.2 at the end of the class. This walkthrough will not be recorded.
All R scripts, data files and exercise solutions (R scripts) are available in this zip file: download
Link to lectures
Link to exercises with Phillip.
Link to exercises with Bo.
Slides
Exercise sheet
All R scripts, data files and exercise solutions (R scripts) are available in this zip file: download