- What this module is about
- How the module fits together
- What the assessment asks you to produce
- What the assessment criteria reward
- What a good analysis report contains
- How to choose a workable dataset and question
Associate Professor in Psycholinguistics
Weeks 1-3: RMarkdown, linear models, model comparison.
Research: language processing and Bayesian modelling.
Professor of Experimental Psychology
Weeks 4, 5, 7: binary and count outcome models.
Author of Serious Stats (Baguley, 2012).
Lecturer in Cognitive Psychology
Weeks 8-10: multilevel models and revision.
Research: person perception, mixed-effects models, signal detection.
This module is about using advanced regression models to answer research questions with data.
The practical goal is that you can produce reproducible analysis reports that show:
The module builds from linear regression towards more flexible regression models.
We use one broad modelling framework to understand:
Four short analysis reports, each using a dataset of your own choice:
Each analysis should be no more than 4 pages (excluding references).
Deadline: Friday 4 December 2026, 2 pm via Dropbox.
You will need to work on these reports throughout the term, not just at the end.
Address some non-trivial question of some psychological relevance using your chosen data.
Psychology covers a wide range of topics and sub-fields, many of which overlap with other disciplines.
Consider the dataset described here, published in:
Bertrand, M., & Mullainathan, S. (2004). Are Emily and Greg more employable than Lakisha and Jamal? A field experiment on labor market discrimination. American Economic Review, 94, 991-1013.
The article was published in an economics journal, but it addresses implicit racial bias and is clearly related to psychology.
For each analysis, you should:
The formative assessment is one short linear-regression report.
Deadline: Friday 23 October 2026, 2 pm.
This assessment is supported during the workshops. Across the first three weeks, you will have time to work on:
| Outcome | Example | Possible model |
|---|---|---|
| Continuous | reaction time, weight | linear model |
| Binary | correct/incorrect, yes/no | logistic regression |
| Count | number of errors | count model |
| Continuous + repeated/grouped | reaction times across trials within people | multilevel model |
From the NOW learning room, open formative-assessment-example.pdf.
Do not worry about how the report was created yet. For now, identify:
This is a good example of report structure, not a perfect report.
It is deliberately fairly simple so that we can see the main parts clearly. A marker might say that it could be stronger by adding:
For a first-class report, the structure needs to be combined with more independent thinking and a more convincing argument.
A clear analysis report usually contains:
The rest of the session, and your homework, is dedicated to identifying a topic and dataset for the formative assessment.
There are two steps:
We will do Step 1 first, discuss ideas as a group, then move to Step 2.
Finding a dataset is easier if you start with an area you already care about.
A good starting point is your project lab topic, or a topic from another psychology module.
Write down:
From the NOW learning room, open part-1-dataset-planning.html and use Exercise 1 as a guide.
Work in small groups and help each other. Do not search for datasets yet.
Keep in mind that the topic should connect to psychology, but do not worry about writing a full justification at this stage.
Answer the following questions (for yourself):
Each group should be ready to share one idea.
When listening to other groups, ask:
For the formative assessment, look for a dataset that can support a clear regression question.
A useful dataset usually has:
A continuous variable is numeric and has meaningful distances between values.
Good linear-model outcomes
Not continuous outcomes
For a simple linear model, look for a rectangular table.
| id | age | sex | smoker | reaction time (ms) |
|---|---|---|---|---|
| 1 | 84 | male | former | 701.7 |
| 2 | 37 | female | no | 470.7 |
| 3 | 62 | female | yes | 638.7 |
| 4 | 85 | female | former | 708.0 |
| 5 | 73 | male | former | 607.3 |
In this example, one row is one participant. The continuous outcome could be reaction time. Predictors could include age, sex, or smoking status.
First question for any dataset: what does one row represent?
Here is a different dataset structure.
| participant | trial | script | lexicality | correct | reaction time (ms) |
|---|---|---|---|---|---|
| P001 | 1 | pinyin | word | 1 | 1420 |
| P001 | 2 | chinese | nonword | 0 | 2955 |
| P001 | 3 | chinese | word | 1 | 817 |
| P001 | 4 | pinyin | word | 1 | 1571 |
| P001 | 5 | chinese | nonword | 1 | 1036 |
Identify:
Useful starting points include:
Search in two steps.
First, search for the topic and data source:
sleep questionnaire open datamemory reaction time dataset OSFanxiety wellbeing csv codebookattention experiment trial-level dataThen check whether the dataset has a usable outcome and predictors.
Do not choose a dataset just because the topic sounds interesting.
ChatGPT, Copilot, and similar tools can help generate search terms and identify possible repositories.
Useful prompts:
Always verify suggestions yourself. Check the original source, documentation, licence, variables, and file format.
Kaggle is popular with students and can be useful, especially for CSV files with previews and column metadata.
Treat it as a starting point, not automatic approval.
A Kaggle dataset is only suitable if you can:
Before choosing a dataset, check:
Use your topic from Exercise 1 and the part-1-dataset-planning.html document to save notes.
By the end, identify:
For each candidate dataset, check:
Use the remaining time to get help with these checks or to find a better dataset.
Software setup
If needed:
install.packages("tidyverse")
library(tidyverse)Bring next time
Check that:
library(tidyverse) runs without an errorUseful books for this module:
Andrews, M. (2021). Doing data science in R: An introduction for Social Scientists. SAGE Publications Ltd.
Baguley, T. (2012). Serious stats: A guide to advanced statistics for the behavioral sciences. Macmillan International Higher Education.
Gelman, A., Hill, J., & Vehtari, A. (2020). Regression and other stories. Cambridge University Press.