Date

Sep 9, 2019 10:00 AM

Location

Dorothy Hodgkin 0.31, Keele University.

**Welcome**

In this workshop we’ll cover the motivation behind engaging in reproducible research methods, the basics of R, data wrangling, and data visualisation. In the afternoon we’ll look at some standard statistical methods using the general linear model.

We will finish off by looking at how you can use Binder and GitHub to engage in fully reproducible research.

**Before the Workshop - Installing R and RStudio**

You will probably want to bring a laptop for this course. Beforehand, you should install R (the language) and RStudio (the interface that helps us interact with R) - each is available for OSX, Windows, and various flavours of Unix. You can install R from here:

https://www.stats.bris.ac.uk/R/

And RStudio from here:

https://www.rstudio.com/products/rstudio/download/#download

**The Course Material**

You can download all the slides, R scripts, R Markdown scripts, and datasets that I will use in the workshop by clicking on the “Clone or download” buton on my GitHub repo and then selecting “Download ZIP”.

https://github.com/ajstewartlang/Keele_Sept_2019

Here you’ll find separate Morning and Afternoon folders. The Morning and Afternoon folders contain the slides, R and R Markdown scripts, and the data I use in the slides. Additionally, you’ll also find a *Cheat Sheets and Handy Guides* folder which contains a number of helpful reference resources.

**Worksheets**

You can view the first worksheet here:

http://ajstewartlang.github.io/Keele_2019/worksheets/worksheet1.html

And the second worksheet here:

http://ajstewartlang.github.io/Keele_2019/worksheets/worksheet2.html

**Online R Resources**

Below are some helpful R resources - it would be useful to look at the first one before the workshop.

Online introductory guide to R, RStudio, and R Markdown. This is a very clear and focused introduction to R, RStudio, and R Markdown. You probably want to read the first four chapters sooner rather than later…

R for Data Science online book - Garrett Grolemund and Hadley Wickham This is the online interactive version of the book of the same name. It focuses more on the data science side of things than on statistics per se, and is very useful (especially in terms of data wrangling).

R Graphics Cookbook
The following *cookbook* contains lots of useful examples of graphing using the ggplot2 package in R.

http://www.cookbook-r.com/Graphs/

If you have any questions in advance of the course, feel free to drop me an email (Andrew.Stewart@manchester.ac.uk)