• Research
  • Publications
  • Talks
  • Books
    • BMHE
    • BCEA book
    • BMPR
    • R for HTA
  • Software
    • BCEA
    • survHE
    • blendR
    • bmhe
    • SWSamp
    • bmeta
    • INLA
  • Blog
  • Teaching
    • Summer school
  1. Research
  2. Covid
  • Research
    • Eurovision
    • VoI
    • Covid
    • Missing data
    • Survival
    • RDD
    • HPV
    • ITS
    • Population adjustment
    • Stepped Wedge
    • Trees
    • Football
    • PCOS
    • Psymaptic-A
    • Single arm
  1. Research
  2. Covid

Bayesian modelling of excessive mortality due to the Covid-19 pandemic

Hierarchical models
Miscellanea
Authors
Affiliations

Gianluca Baio

UCL

Marta Blangiardo

Imperial College London

Monica Pirani

Imperial College London

Michela Cameletti

University of Bergamo (Italy)

Garyfallos Konstantinoudis

Imperial College London

Virgilio Gomez Rubio

University of Castilla-La Mancha (Spain)

Published

November 21, 2023

Introduction

The total impact of the COVID-19 pandemic on mortality should be the least controversial outcome to measure. However, its analysis is complicated by the lack of real time cause specific data; a potential additional issue concerns the quality of coding on the death certificates, particularly in the earlier stages of the pandemic. Furthermore, there are important differences in the recording systems, both across and within countries (e.g. in the UK, England and Wales have consistently reported data on daily deaths based on different time of recording in comparison to Scotland and Northern Ireland). In this context, estimating excess deaths for all causes at national level, with respect to past year trends has been used in several countries as an effective way to evaluate the total burden of the COVID-19 pandemic, including direct COVID-19-related, as well as indirect effects (e.g. people not being able to access health-care). At the same time, all-cause mortality is not affected by mis-coding on the death certificates.

Despite these positive features, this approach can only present global pictures of the total burden of the first wave of the infection. However, to understand the dynamics of the pandemic, we need to analyse data at sub-national level; this would allow to account for geographical differences due to the infectious nature of the disease, as well as those in the population characteristics and health system provision. Additionally, time trends can vary substantially, rendering comparisons even more complex.

The modelling is generally based on the following structure.

  • yjtsk= number of all-cause deaths in week j of year t for NUTS3 area s and age-sex group k

    k=1,…,K=10= age-sex group (male/female and <40, 40-59, 60-69, 70-79, 80)

  • Pjtsk= population at risk in week j of year t for NUTS3 area s and age-sex group k

  • ρjtsk= the risk of death (mortality rate) in week j of year t for NUTS3 area s and age-sex group k

  • zj= dummy variable for public holiday

  • xjts= average weekly temperature in each area

The observed counts are modelled as

yjtsk∼Poisson(ρjtskPjtsk)log⁡(ρjtsk)=β0t+β1zj+f(xjts)+bs+wj

and

“Unstructured” effects β
- β0t=β0+εt: year-specific intercept

  • β0∼Normal(0,103): global intercept

  • εt∼Normal(0,τε−1): unstructured random effect

  • β1∼Normal(0,103): effect of public holidays

Non-linear effect of average weekly temperature f(xjts) - RW2 model: xjts∣x(j−1)ts,x(j−2)ts,τx∼Normal(2x(j−1)ts+x(j−2)ts,τx−1)

Spatial component - bs=1τb(1−ϕτv0.5vs+ϕτu0.5us): Besag-York-Mollié (BYM)-type model

  • vs∼Normal(0,τv−1): unstructured random effect
  • us∣u−s∼Normal(∑r=1Rnrsur∑r=1Rnrs,1τu∑r=1Rnrs): spatially structured random effect
  • ϕ∈[0,1]: mixing parameter (measures proportion of variance explained by the structured effect)

Temporal component (non-linear weekly effect) - RW1 model (accounts for seasonality): wj∣wj−1,τw∼Normal(wj−1,τw−1)

Last updated: 3 July 2025

Relevant publications

 
VoI
Missing data
© Gianluca Baio 2025 - 2028

Privacy & Cookie Settings

We use cookies and similar technologies to enhance your browsing experience, analyse site traffic, and serve personalised content. You can manage your preferences at any time.

Privacy Preferences

Configure your privacy preferences for different types of cookies and tracking technologies.

Necessary

Essential for the website to function properly. These cannot be disabled.

These cookies are required for:
• User authentication and secure login
• Maintaining your session while browsing
• Processing secure payments
• Preventing security threats and fraud
• Remembering items in your shopping cart

Analytics

Help us improve by understanding visitor behaviour.

We use analytics to:
• Understand which pages are most popular
• Monitor site performance and loading times
• Track visitor journeys and navigation patterns
• Identify technical issues and errors
• Measure the effectiveness of our content

Common providers: Google Analytics, Matomo, Hotjar, Microsoft Clarity

Marketing

Deliver relevant ads and measure campaigns.

Marketing cookies help us:
• Show you relevant advertisements
• Measure ad campaign effectiveness
• Limit how often you see the same ad
• Understand your interests and preferences
• Track conversions from advertising

Common providers: Google Ads, Facebook Pixel, LinkedIn Insight, Twitter Ads, Amazon Advertising

Embeds

Enable third-party content and features.

Important: These third-party services may set their own cookies that we cannot control.

Types of embedded content:
• YouTube and Vimeo videos
• Social media posts and feeds
• Microsoft Forms and surveys
• Interactive maps and location services
• Live chat and support widgets
• External booking systems