Published August 23, 2018 | Version v1.3

SmokingDefinition (STATA): An algorithm to define smoking status in patients of the UK Clinical Practice Research Datalink (CPRD)

  • 1. NIHR Manchester Musculoskeletal Biomedical Research Centre, Central Manchester University Hospital NHS Foundation Trust, Manchester, UK
  • 2. Arthritis Research UK Centre for Epidemiology, Centre for Musculoskeletal Research, University of Manchester, Manchester, UK
  • 1. Arthritis Research UK Centre for Epidemiology, Centre for Musculoskeletal Research, University of Manchester, Manchester, UK
  • 2. NIHR Manchester Musculoskeletal Biomedical Research Centre, Central Manchester University Hospital NHS Foundation Trust, and Arthritis Research UK Centre for Epidemiology, Centre for Musculoskeletal Research, University of Manchester, Manchester, UK

Description

SmokingDefinition (STATA Implementation) is an algorithm to define smoking status, length of smoking cessation and amount smoked in a cohort of patients from the UK Clinical Practice Research Datalink (CPRD).

Overview

The smoking status algorithm takes smoking data from various sources within CPRD and outputs three variables:

  • a time-varying smoking status (never, former, current)
  • the duration of cessation (in years, restarting at 0 whenever a new period of cessation begins)
  • the amount smoked (not time varying, single status: 'light' smoker vs heavy smoker, defined based on the highest category recorded within a fixed window of an index date... missing<light<heavy).

Requirements

Software

The files were created using Stata 12.1.

Data

Standard CPRD datasets saved in STATA format.

Notes

Funding: Supported by the Arthritis Research UK Centre for Epidemiology (grant 20380) and the National Institute for Health Research Biomedical Research Unit Funding Scheme. Contributions: Rebecca M. Joseph (designed & implemented the code), Mohammad Movahedi (tested code components), William G Dixon (funding/supervision), Deborah P. M. Symmons (funding/supervision)

Files

SmokingDefinition-1.3-zenodo.zip

Files (24.0 kB)

Name Size Download all
md5:0c945c9023c9e55df9d1ce6a95ba4cea
24.0 kB Preview Download

Additional details