Linear Mixed Effects Models in R

Abstract

This workshop introduces you to linear mixed effects models in R. It is decidedly conceptual without too much mathematical proofs or equations involved. We will focus on understanding the model through analysing two datasets and building up linear modeling workflow in R.

Date
Feb 18, 2022 11:00 AM
Event
Lab Skills Workshop
Location
First Floor Lecture Room 1
47 Wellington square street, Oxford, OX1 2ER

Pre-workshop Setup

  • Download and install the latest version of R.
  • Download and install RStudio. RStudio is an application (an integrated development environment or IDE) that facilitates the use of R and offers a number of nice additional features. You will need the free Desktop version for your computer.
  • Install the following packages. Copy the following line of code and paste it in the Rstudio Console, and press return to run the code.
install.packages(c("tidyverse", "lme4", "lmerTest"))
  • Import the shortened version of dataset in Winter and Grawunder (2012). Copy the following line of code and paste it in the Rstudio Console, and press return to run the code.
data = read.csv("http://www.bodowinter.com/tutorial/politeness_data.csv")

Prerequisites

The workshop will be easier for you if…

You have basic knowledge about R and R studio.

You have basic inferential statistical knowledge.


Winter, B. (2019). Statistics for Linguists: An Introduction Using R (1st ed.). Routledge. https://doi.org/10.4324/9781315165547

Shravan Vasishth, Daniel Schad, Audrey Bürki, Reinhold Kliegl. (on going) Linear Mixed Models in Linguistics and Psychology: A Comprehensive Introduction. https://vasishth.github.io/Freq_CogSci/

Barr, Dale J. (2021). Learning statistical models through simulation in R: An interactive textbook. Version 1.0.0. Retrieved from https://psyteachr.github.io/stat-models-v1.

McElreath, R. (2020). Statistical Rethinking: A Bayesian course with examples in R and STAN. CRC Press.

Next
Previous

Related