Skip to content
@stapm-platform

Sheffield Tobacco and Alcohol Policy Modelling (STAPM) Platform

Codebase for the Sheffield Tobacco and Alcohol Policy Modelling

This GitHub organisation stores the R packages underlying the Sheffield Tobacco and Alcohol Policy Model (STAPM) and associated repositories of modelling projects, statistical analysis, and data processing.

For more about STAPM visit the Sheffield Addictions Research Group (SARG) website.

For open source code used to produce specific publications see our open access repositories

Overview

The aim of the STAPM research programme at the Sheffield Centre for Health and Related Research at the University of Sheffield, UK, is to identify and evaluate approaches to reducing the harm from tobacco and alcohol, with the aim of improving commissioning in a public health policy context, i.e. providing knowledge to support benefits achieved by policymakers.

The two objectives of the STAPM research programme are:

  • To evaluate the health and economic effects of past trends, policy changes or interventions that have affected alcohol consumption and/or tobacco smoking
  • To appraise the health and economic outcomes of potential future trends, changes to alcohol and/or tobacco policy or new interventions

The STAPM platform is not linked to the tobacco or alcohol industry and is conducted without industry funding or influence.

Code

The modelling was developed in R and R studio, with particular attention to utilising new developments in the software environment to organise, document, and version control code.

A set of internal STAPM R packages have been developed that contain code used for particular purposes, e.g. to estimate smoking state transition probabilities from cross-sectional survey data (see https://stapm-platform.github.io/). Packaging up code into modular functions and packages makes the processes applied in modelling easier to document, adapt and reuse across projects.

Some STAPM code is starting to become publicly available on this GitHub repository, but the majority is currently available only to the project team.

Code repositories

Below are links to various code repositories. This list is not exhaustive, but contains the R packages, core repositories containing the different models built on the STAPM platform, and key input data processing repositories that ensure consistency in data cleaning across projects and models.

R packages

  • stapmr - the main STAPM R package, containing the functions required to run the different models built on the platform.
  • tobalcepi - the R package containing relative risks and attributable fractions of diseases.
  • pricepol - the R package for modelling price and tax policy interventions in the TAX-sim model.
  • tobalcpricedists - the R package containing the workflows for generating price distribution data inputs for the TAX-sim model.
  • hseclean - the R package for cleaning the main survey data sources containing alcohol and tobacco consumption data - the Health Survey for England, Scottish Health Survey, and National Survey for Wales.
  • smktrans - the R package containing the workflow for generating smoking state transition probabilities for England, Scotland, and Wales.
  • taxsim.post - the R package which cleans the raw simulation output from the TAX-sim model into impact summary spreadsheets.
  • econcalc - the R package containing functions for calculating economic outcomes from the TAX-sim model simulation outputs. Used by taxsim.post

Tobacco and Alcohol Tax and Price Intervention Simulation Model (TAX-sim)

  • TAX-sim - the main development repo for the TAX-sim model.
  • TAX-sim v2.7.0 - the most recent release version of the TAX-sim model, currently 2.7.0.
  • SynthTobAlc - the repository used to construct the synthetic population for the TAX-sim model.

The Sheffield Alcohol Policy Model in R (SAPM-R)

  • SAPM-R - the main development repo for the SAPM-R model.
  • SAPM-R v1.2.1 - the most recent release version of the SAPM-R model, currently 1.2.1.

STAPM-NoLo

  • SynthNoLo - the repository used to construct the synthetic population for the STAPM-NoLo model.

Data analysis repositories

  • health-state-utilities - estimation of population EQ-5D utilities by age and sex from Health Survey for England data.

Popular repositories Loading

  1. hseclean hseclean Public

    R package - English, Scottish, and Welsh Health Survey Data Wrangling.

    R 2

  2. mort.tools mort.tools Public

    R package - Computing mortality rates from tobacco and alcohol related causes. This is a mirror of the code in the private Gitlab repository

    HTML 1

  3. smktrans smktrans Public

    R package and estimation workflow - Estimating smoking state transition probabilities from cross-sectional survey data

    R 1

  4. hesr hesr Public

    R package - Estimate rates and costs of hospital admissions related to tobacco and alcohol

    TeX 1

  5. qalyr qalyr Public

    R package - Estimating health state utility values for conditions related to tobacco and alcohol

    TeX

  6. scot_attrib_fractions scot_attrib_fractions Public

    Alcohol and tobacco attributable fractions for Scotland

    R

Repositories

Showing 10 of 11 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

R TeX HTML

Most used topics

Loading…