Giter Club home page Giter Club logo

global-wbmh's Introduction

Global well-being and mental health in the internet age

This repository contains the code and synthetic datasets required to reproduce all analyses reported in Global well-being and mental health in the internet age (Vuorre & Przybylski).

Materials

  • Preprint
    • A publicly available version of our manuscript in advance of peer-review and formal publication
  • GitHub repository
    • A version controlled repository containing all the raw data and code in this project
  • DOI
    • An archived permanent copy of the GitHub repository

Reproducibility

The analyses were conducted in R; steps to reproduce are

  1. Clone the github repo
  • Terminal: git clone https://github.com/digital-wellbeing/global-wbmh.git
    OR
  • RStudio: File -> New Project -> Version Control -> Git -> use the URL from above
  1. Prepare the R environment
  • Terminal: Rscript -e "renv::restore()"
    OR
  • RStudio: Click renv -> Restore Library in the Packages panel
  1. Render the source file ms.Rmd
  • Terminal: Rscript -e 'rmarkdown::render("ms.Rmd")'
    OR
  • RStudio: Open the file and click Knit/Render

If you encounter problems, please open an issue.

The project repo includes the GBD dataset, code to download the ITU dataset (internet; mobile), and a synthetic mock version of the GWP dataset to enable reproducing all our computations. The models take several hours/days each to run---depending on your local computing resources---and therefore the rendering process can take several days. For this reason, the build will fail after having cleaned the data. Then, run models.R with settings specific to your environment/cluster. Once that is done you can render the source file again and it should work.

global-wbmh's People

Contributors

mvuorre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.