Data Analysis for Psychology in R 2
Department of Psychology
University of Edinburgh
2025–2026
| Introduction to Linear Models | Intro to Linear Regression |
| Interpreting Linear Models | |
| Testing Individual Predictors | |
| Model Testing & Comparison | |
| Linear Model Analysis | |
| Analysing Experimental Studies | Categorical Predictors & Dummy Coding |
| Effects Coding & Coding Specific Contrasts | |
| Assumptions & Diagnostics | |
| Bootstrapping | |
| Categorical Predictor Analysis |
| Interactions | Interactions I |
| Interactions II | |
| Interactions III | |
| Analysing Experiments | |
| Interaction Analysis | |
| Advanced Topics | Power Analysis |
| Binary Logistic Regression I | |
| Binary Logistic Regression II | |
| Logistic Regression Analysis | |
| Exam Prep and Course Q&A |
Lectures:
Together, we’ll practice the full analysis workflow we’ve developed this semester.
Today: we’ll work through one example, maybe more.
Tomorrow: you’ll vote later on what you’d like us to do.
Labs:
You’ll practice writing up these analyses as a report.
RQ1: Do conscientiousness, frequency of accessing online materials, and year of study in University predict course attendance?
RQ2: Is there a difference in attendance between those with early/late classes in comparison to those with midday classes?
Dataframe called data1 containing:
pid: Participant ID numberAttendance: Total attendance (in days)Conscientiousness: Conscientiousness (Levels: Low, Moderate, High)Time: Time of class (Levels: 9AM, 10AM, 11AM, 12PM, 1PM, 2PM, 3PM, 4PM)OnlineAccess: Frequency of access to online course materials (Levels: Rarely, Sometimes, Often)Year: Year of study in university (Levels: Y1, Y2, Y3, Y4, MSc, PhD)RQ3: Is class attendance associated with final grades?
Dataframe called data2 containing:
Marks: Final grade (0–100)Attendance: Total attendance (in days)Not every analysis requires every step.
Think of these steps like a buffet for you to pick and choose from, depending on what your analysis needs.
(1) Before model fitting:
(2) Model fitting:
(3) After model fitting:
RQ1: wooclap.com, enter code FJAKCO
wooclap.com, enter code ZBTYJA
RQ2: wooclap.com, enter code PHPQUA
RQ3: wooclap.com, enter code ZRXMDS
Attend your lab and work together on the exercises
Help each other on the Piazza forum
Complete the weekly quiz

Attend office hours (see Learn page for details)