Skip to content

SEAMS-Workshop/workspace_practical

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Case Fatality Ratio (CFR) Analysis

Overview

This project performs a basic CFR analysis for COVID-19 in South Africa. CFR during the pandemic was dynamic due to both changes in case detection, in medical care, and in existing immunity.

Estimating CFR, however, is tricky for a number of reasons. We don't generally know which reported cases resulted in deaths, so instead we have to compare the two time series and apply an appropriate time lag (date of death is often much later than case report date).

Here we use Our World in Data COVID-19 time series to visualize time-varying CFR estimates using a range of potential case-to-death time lags.

NB: Although we focus on South Africa, the raw dataset includes all countries. Changing the locale can be done by editing the data.sh
script.

Inputs

Our World in Data COVID-19 time series in CSV format. As of 27 Feb 2023, about 70 MB.

Outputs

Visualizations (two multi-panel png figures) showing

  • Cases, deaths, and non-lagged CFR over time, and
  • CFR over time for a range of lag values.

Code

  • data.sh: Fetch raw data, and prune it down to a much smaller ("processed") CSV containing only the data needed for the analysis.
    Usage: ./data.sh or bash data.sh
  • epicurve.R: Read in the processed CSV produced by data.sh and create visualizations in the fig directory. Usage: ./epicurve.R or Rscript epicurve.R

License

GNU GPL v3.0 or later

About

Shows example results for the workspace organization and tools (second day practical)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published