Welcome to the Multivariate Statistics & Methodology in R (MSMR) lab workbook. Using the menu above, you can find lab materials for each week. These include sets of exercises along with walkthrough readings in which we introduce some of the more important R code.

Solutions

Solutions will be made available immediately below each exercise, in the week after they are set, so make sure to re-visit these pages to check your answers.

Asking Questions

We encourage you to use the various support options below. Details of these are also available on the weekly pages on Blackboard Learn.

Tips on googling statistics and R

Searching online for help with statistics and R can be both a help and a hindrance.
If you have an error message in R, copy the error message into google. The results returned can sometimes just cause more confusion, but sometimes something might jump out at you and help you solve the problem. The same applies with searching the internet for help with statistics - search for “what is a p-value”, and you’ll find many many different articles and forum discussions etc. Some of them you will find too technical, but don’t be scared - the vast majority of people working in statistics may well find these too technical too. Some of them you might feel are too simple/not helpful. As a general guide, keep clicking around the search responses, and you may end up finding that someone, somewhere, has provided an explanation at the right level. If you find something during your search which you don’t quite understand, feel free to link it in a post on the discussion forum!

R Cheatsheets

You can find a collection of cheatshets that summarise some of the most useful commands you will be using for tasks such as data transformation, visualisation, RMarkdown and many others here/

Some key ones for this course are:

R Community

R has great representation in Edinburgh. Check out these pages to find out more:

And worldwide you have:

Artwork by \@allison_horst

Figure 1: Artwork by @allison_horst