Giter Club home page Giter Club logo

scot_attrib_fractions's Introduction

Alcohol and tobacco attributable fractions for Scotland

Purpose of this code

This code was used in a project to calculate the Scottish alcohol, smoking, and joint alcohol & smoking attributable fractions, using Scottish Health Survey (SHES) data.

The code used to conduct the calculations is made open source for the following two reasons:

  • Transparency. Open science, allowing review and feedback to the project team on the code and methods used.

  • Methodology sharing. For people to understand the code and methods used so they might use aspects of it in their own work, e.g., because they are doing something partially related that isn’t exactly the same job and might like to ‘dip into’ elements of this code for inspiration.

How to run the code

This project uses the following R packages which were developed as part of the Sheffield Tobacco and Alcohol Policy Modelling https://stapm.gitlab.io/ by the School of Health and Related Research at the University of Sheffield:

The "05_install_packages.R" script installs the required packages. After installing the packages, then prepare the survey data using the code in the folder "20_prepare_survey_data". The folder "40_calculate_attributable_fractions" contains the script "05_run_pafs.R", which runs all of the other scripts within that folder to produce the population attributable fraction estimates. To generate the plots, run the scripts in "60_figures_and_tables.R".

How to cite the report, code and population attributable fraction estimates

Leeming, G., Angus, C. and Gillespie, D. (2023) Alcohol and Tobacco Attributable Fractions for Scotland. The University of Sheffield. Doi: 10.15131/shef.data.24543343

Contact

Lead analyst: Grace Leeming [email protected]

scot_attrib_fractions's People

Contributors

gfleeming 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.