Workshop: Week 9

ImportantInstructions
  • Pick one of the following tasks and work through it in group.

  • While this week focusses on regression models and the tasks below are for you to practice them, you should also get summary measures and plot the data, so that you familiarise yourself with the data sets and you keep practising skills learned in earlier weeks.

  • If you are unsure about anything, please ask us for directions! You can find information about the data on the QML Data website.

  • The tasks are designed for you to practice regression models with interactions.

NoteTask A: Shallow Structure Hypothesis
  • Read the song2020/shallow.csv data. Filter the data so it contains only critical trials.

  • Fit a regression model to answer the following question: how does the effect of relation type of prime-target on accuracy differ in L1 vs L2 participants?

  • Write a paragraph reporting the model. Produce plots of the posterior distributions of the model parameters and the expected predictions of accuracy for each relation type in L1 vs L2 participants.

  • Discuss the results with your group (no need to write the discussion).

NoteTask B: Pupil width
  • Read the mclaughlin2023/pupil-width.csv data.

  • Fit a regression model to answer the following question: does the density of the neighbourhood affect maximum pupil size in old vs young adults differently?

  • Write a paragraph reporting the model. Produce plots of the posterior distributions of the model parameters and the expected predictions for the dense and sparse condition in old vs young participants.

  • Discuss the results with your group (no need to write the discussion).

TipFeedback

For feedback, ask us in class and/or send your work to Stefano and/or come to Stefano’s office hours (you can also come in groups).

We will not provide you with model answers, so make sure you make the most of us in person.