Perceived value of video games, but not hours played, predicts mental well-being in adult Nintendo players
This repository contains the data, materials, and code for our manuscript "Perceived value of video games, but not hours played, predicts mental well-being in adult Nintendo players".
- preprint: https://osf.io/preprints/psyarxiv/3srcw/
- This repository contains the data and code described in our manuscript.
Authors:
- Nick Ballou (nick@nickballou.com)
- Matti Vuorre
- Thomas Hakman
- Kristoffer Magnusson
- Andrew K. Przybylski
The codebook describing all datatables and questionnaire items can be found in materials/codebook.xlsx
.
Data itself can be found in data/
, in compressed .csv.gz
files. In total, this includes 5 kinds of data:
- Demographic data on all screened participants (
demographics.csv.gz
) - Self-report data from surveys (
survey.csv.gz
) - Video game behavior data in the form of Nintendo Switch session records (
telemetry.csv.gz
) - Cognitive task data (
osf/
) - Game Metadata, scraped from IGDB.org so as to understand feature-level characteristics of the games people played.
The analysis code is written in R. The source code of the manuscript (including all data wrangling, analysis, and an APA-like template that can be rendered as a pdf or docx file) is in ms.qmd
. To reproduce, run make
or manually:
- Open the noa-pilot-ms.Rproj project.
- Restore the R environment with
renv::restore()
.
- Renv is used to manage the package dependencies for this project. You should be automatically prompted to install the necessary packages on your system upon opening the project.
- Run the analysis and manuscript in
ms.qmd
.
Note that some computations can take a long time, depending on computer performance etc. You will also need to have a working and compatible LaTeX installation.
To contribute, open an issue and/or send a pull request at https://github.com/digital-wellbeing/noa-pilot-ms.