Main content
Green/Screen Study /
Associations between digital media use and psychotic experiences
Date created: | Last Updated:
: DOI | ARK
Creating DOI. Please wait...
Category: Analysis
Description: Below are the R code files for data analysis. The files are numbered as follows: 1_Tidy.R -- Here we prepare the data. 2_Data check.R -- Here we perform the quality checks. 3_Descriptive analysis.R -- Here we create some tables to describe baseline and follow-up data. 4_Main analysis.Rmd -- Here we run cross-lagged and random-intercept cross-lagged models to examine bidirectional associations between digital media use and psychotic experiences. 5_Covariate_adjustment.Rmd -- Here we adjust for potential confounders using the preferred model from previous file, i.e., using time-varying random intercepts. 6_Subtype analysis.Rmd -- Here we examine types of digital media use (TV/streaming, social media, video games) separately.