-
Notifications
You must be signed in to change notification settings - Fork 0
/
exercises.Rmd
79 lines (50 loc) · 3.22 KB
/
exercises.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
title: 'Exercises'
output:
html_document:
toc: false
---
```{r setup-ex, echo=FALSE, purl = FALSE}
library(knitr)
library(stringr)
knitr::opts_chunk$set(message=FALSE, warning=FALSE, eval=TRUE, echo=FALSE)
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(stringr))
source('reveal.R')
```
\
These exercises will help gauge your understanding of the material covered during this course. Each exercise contains a series of questions which will help reinforce statistical theory, how to implement this theory in R and also take you through a typical workflow when asking and answering research questions with your data.
Whilst working through the exercises we recommend that you create a new R script for each exercise in an RStudio project. Make sure you include plenty of comments and notes to yourself for future reference, or, perhaps even better, include your code and commentary in an R markdown document. Of course, how you want to work is entirely up to you!
During each exercise you will be working in a synchronous session on Blackboard collaborate where you will be able to ask questions and get one-to-one help from the course instructors. Towards the end of each session, one of the instructors will go through each exercise with you in real time to help clear up any lingering doubts and also provide you with an opportunity to discuss analytical decisions.
We will release the [solutions to the exercises](exercise_solutions.html){target="_blank"} after each of our synchronous sessions. If you prefer to download these exercises in pdf format you can [find them here](exercise_pdf.html){target="_blank"}.
Have fun!
```{r, reveal, echo=FALSE, eval = isFALSE(show_exercise)}
cat("Exercises will be released as the course progresses")
```
```{r pdf-out, include = FALSE}
# TODO: generate list automagically
rmarkdown::render("graphical_data_exploration_exercise.Rmd", output_format = "pdf_document", output_file = "./exercises/graphical_data_exploration_exercise.pdf", quiet = TRUE)
rmarkdown::render("linear_model_1_exercise.Rmd", output_format = "pdf_document", output_file = "./exercises/linear_model_1_exercise.pdf", quiet = TRUE)
rmarkdown::render("linear_model_2_exercise.Rmd", output_format = "pdf_document", output_file = "./exercises/linear_model_2_exercise.pdf", quiet = TRUE)
rmarkdown::render("linear_model_3_exercise.Rmd", output_format = "pdf_document", output_file = "./exercises/linear_model_3_exercise.pdf", quiet = TRUE)
rmarkdown::render("linear_model_4_exercise.Rmd", output_format = "pdf_document", output_file = "./exercises/linear_model_4_exercise.pdf", quiet = TRUE)
```
\
### Day 1
- [Graphical data exploration exercise](graphical_data_exploration_exercise.html)
\
### Day 2
- [Linear model with a single continuous explanatory variable exercise](linear_model_1_exercise.html)
\
### Day 3
- [Linear model with a single categorical explanatory variable exercise](linear_model_2_exercise.html)
- [Linear model with categorical and continuous explanatory variables](linear_model_3_exercise.html)
\
### Day 4
- [Linear model selection exercise](linear_model_4_exercise.html)
\
<!--
### Day 5
- [Linear model selection exercise](linear_model_4_exercise.html)
\
-->