R course

Here are the materials and preparation instructions for the training course Modelling behavioural data using R.  This is a brief, basic, practical introduction to working in R, and to linear statistical modelling. The course consists of a PDF to work through (download here: course PDF) plus eight associated files: six data files and two script files (download here and copy them to a convenient folder on your computer).

The course uses two applications, R itself, and RStudio. It would be a good idea to install R and RStudio on to whatever computer you plan to work from before beginning. You need to install R before installing R Studio. You install R from: https://cran.r-project.org/ and RStudio from https://www.rstudio.com/products/rstudio/download/ (Desktop version, Open Source licence).

There are six sessions to work through, plus some useful bits and pieces. Each session is short enough to be worked through in a single setting if all goes well. The topics covered in the course are the following:

  1. Introducing R and RStudio
  2. Introducing the General Linear Model
  3. Plotting and interactions
  4. Generalized and mixed models
  5. Model selection and meta-analysis
  6. Writing R functions, programming and simulation
  7. Useful bits and pieces

These materials are completely free and openly shareable, but please let me know if you are using them, and if you encounter any problems.