Published May 13, 2026
| Version 2.0
Journal article
Open
Obesity rise plateaus in developed nations and accelerates in developing nations
Authors/Creators
Description
NCD Risk Factor Collaboration (NCD-RisC) Code and Data Sharing
This repository contains code and data for generating estimates of obesity prevalence and velocity amongst school-aged children and adolescents and adults, in 200 countries and territories from 1980 to 2024, as reported in the NCD Risk Factor Collaboration (NCD-RisC) publication "Obesity rise plateaus in developed nations and accelerates in developing nations" [1].
Contents Guide
data/The list of data sources used in the study, together with input data used in the model from publicly available sources and contact information for other data sources.model/R code for the Bayesian hierarchical model used to analyse the data to estimate obesity prevalence and velocity by country, year, and age group, and R code for identifying phenotypes of national trajectories of obesity. See Methods section of [1] for statistical details.utils/Essential covariate files and example initial values provided for running one chain for one combination of sex and BMI category for demonstration purpose. Further details on initial values and number of chains are provided in the Model Implementation section in Methods of [1].renv/This folder contains files to restore the runtime R environment.
Contact
- For more information about the paper or the NCD Risk Factor Collaboration, please see www.ncdrisc.org or contact ncdrisc@imperial.ac.uk.
Other Materials
- Most users will prefer to access and use the complete NCD-RisC estimates of obesity prevalence and velocity, which are available here: www.ncdrisc.org/data-downloads.html.
Reproducibility
- Code was run and tested in R version 4.3.0. A docker snapshot of the computing environment used to run code and produce results is here: https://hub.docker.com/r/ncdrisc/ncdrisc_hpc_docker/tags?name=0.2
- For information on how replicate the environment using this docker image, please see https://docs.sylabs.io/guides/3.5/user-guide/introduction.html
- To run the package for the first time, please follow the installation guide below:
- Install R 4.3.0 from https://cran.r-project.org/
- For Windows version, go to https://cran.r-project.org/bin/windows/base/old/
- Open a new R console and set working directory to the folder of this package
- Run install.packages("renv") if not already installed
- Run renv::restore()
- Choose option 2 "Do not activate the project and use current library paths" if prompted
- Follow the prompt to install relevant R packages. Typical install time is <5 minutes.
- Install R 4.3.0 from https://cran.r-project.org/
- To run the code for school-aged children and adolescents:
- Open a new R console and set working directory to the folder of this package
- Open "1a_NCD_RisC_adol_bmi_prev_model_code.R"
- Set sex and variable to be analysed from line 49. The code and initial value file are set up for "male" and "prev_bmi_2sd" respectively. For other sex-category combinations, we have not provided initial value files, so the initial.value.type variable should be set to "sampled in code".
- To run the code for adults:
- Open a new R console and set working directory to the folder of this package
- Open "1b_NCD_RisC_adult_bmi_prev_model_code.R"
- Set sex and variable to be analysed from line 50. The code and initial value file are set up for "female" and "prev_bmi_30_35" respectively. For other sex-category combinations, we have not provided initial value files, so the initial.value.type variable should be set to "sampled in code".
- Expected outputs:
- R console will print out iteration numbers every 100 Markov chain Monte Carlo (MCMC) samples.
- A folder named after the BMI category will be created, which contains a PDF of the model traceplot output, updated every 100 MCMC samples.
- When the specified number of MCMC steps are finished, an RData file will be saved with the post-burnt-in and thinned. Based on previous runs, the expected run-time for this example dataset is ~100 hours.
Acknowledgements
- Population data used in this analysis were obtained from the 2024 revision to the United Nations' World Population Prospects [2].
- Data on percent national population living in urban areas were obtained from the 2018 revision to the United Nations' World Urbanization Prospects [3].
References
- NCD Risk Factor Collaboration (NCD-RisC). Obesity rise plateaus in developed nations and accelerates in developing nations. Nature, 2026.
- United Nations, Department of Economic and Social Affairs, Population Division (2024). World Population Prospects 2024, Online Edition.
- United Nations, Department of Economic and Social Affairs, Population Division (2018). World Urbanization Prospects: The 2018 Revision, Online Edition.
Files
2026-NCD-RisC-obesity-velocity-2.0.zip
Additional details
Identifiers
Funding
- UK Research and Innovation
- Worldwide phenotypes and transitions in obesity-related multimorbidity MR/V034057/1
- European Commission
- OBCT - Obesity: Biological, socioCultural, and environmental risk Trajectories 101080250
- UK Research and Innovation
- Obesity: Biological, socioCultural, and environmental risk Trajectories (OBCT) 10103595
Software
- Programming language
- R