Categorical predictors: Study brief


Data Analysis for Psychology in R 2

Author
Affiliation

Emma Waterston, Elizabeth Pankratz


Department of Psychology
University of Edinburgh
2026–2027

Research question

RQ: How are people’s conscientiousness and their year of undergraduate study associated with how often they attend their courses?

Predictions:

  • People with higher conscientiousness will attend their courses more than people with low conscientiousness.
  • People in further years of study will attend their courses less than people in first year.

Study background

The data are available at: https://uoepsy.github.io/data/UGattendance.csv

The data used for this write-up exercise are simulated, drawing on a meta-analysis that explores the association between student characteristics and attendance. The simulated data are loosely based on the findings of this work, and they expand on the methods and results reported in the paper:

Credé, M., Roch, S. G., & Kieszczynka, U. M. (2010). Class attendance in college: A meta-analytic review of the relationship of class attendance with grades and student characteristics. Review of Educational Research, 80(2), 272-295. https://doi.org/10.3102/0034654310362998

NOTE: You are not expected to write an introduction, so you do not have to read this article.

Study procedure

Researchers were interested in what might predict attendance in university courses. They collected information from 326 students across all years of study (Year, categorised as Y1, Y2, Y3, and Y4), and recorded their class attendance across the academic year (Attendance), their level of Conscientiousness (Conscientiousness categorized as Low, Moderate, or High), the frequency of which they accessed online course materials (OnlineAccess categorized as Rarely, Sometimes, or Often), and the timing of class (Time categorized as 9AM, 10AM, 11AM, 12PM 1PM, 2PM, 3PM, 4PM).

Data dictionary

The data in UGattendance.csv contain six attributes collected from a simulated sample of \(n=326\) hypothetical individuals. It includes:

Variable Description
pid Participant ID number
Attendance 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)