Chapter 1 Preface

Analysis code associated with “There is no evidence that associations between adolescents’ digital technology engagement and mental health problems have increased” (Vuorre, Orben, Przybylski)

We study the timecourse of technology effects on adolescent mental health in three large representative datasets.

The preprint, “There is no evidence that associations between adolescents’ digital technology engagement and mental health problems have increased” is on PsyArxiv, and the article is current in press.

1.1 Analyses

The data analyses are organized into separate R Markdown files. First, there are three files that do preprocessing of the raw datasets (extracting the relevant variables from the raw data). Then, the data is cleaned a bit further and visualized. The main analyses are in the modelling scripts.

The project is organized as a R bookdown project, so you can reproduce all analyses by building the book (e.g. in RStudio click the “Build Book” button). (Be advised, though, that the Bayesian GLMMs take a very long time to run [many days]). The results are rendered to docs/index.html and can be viewed in a web browser.

1.2 Raw data

The datasets’ Terms of Use prevent us for sharing the data files here, so you must download the raw data yourself. Get the data as follows so it is in the format expected by our code:

1.3 Reproducibility