Coder Social home page Coder Social logo

mc_covid_cases_public's Introduction

Analysis of COVID-19 case numbers: adjustment for diagnostic misclassification on the example of German case reporting data

This repository contains code and data needed in order to reproduce results presented in "Analysis of COVID-19 case numbers: adjustment for diagnostic misclassification on the example of German case reporting data". The person-specific data from Bavaria is not the original data set due to data privacy restriction, but a synthetic dataset with a similar structure. All results based on the person-specific Bavarian data (e.g., the results of the misclassification-adjusted case numbers and the estimated epidemic curves from nowcasting as well as the underlying estimated statistical models) do differ slightly from the reported results in the manuscript.

The repository contains three folders including code, data and (intermediate) results:

  1. data:
  • 2020_09_21_bav_synth.csv : synthetic person-specific case reporting data from Bavaria
  • 200921_test_bav.RData: daily reported number of reported performed and positive PCR tests by Bavarian laboratories
  • 201001_cases_test_germany.RData: Weekly number of reported SARS-CoV-2 case counts in Germany as well as the weekly number of reported PCR tests and positive reported PCR tests by Germany laboratories
  • nowcast_current: Results of (misclassification-adjusted) nowcasting in Bavaria based on data from January 21st, 2021 (Suppl. Figure 2)
  1. code:
  • 1_analysis_adj_case_counts.R: Basic analyses and misclassification adjustments of case counts. Creates Figures 1-4 + Suppl Figure 1 of the manuscript and misclassification-adjusted person-specific Bavarian case reporting data for misclassification adjusted estimation of the epidemic curve
  • 2_nowcast_*.R: Misclassification adjusted and unadjusted estimation of the epidemic curve based on bayesian hierarchical nowcasting model (for different assumptions regarding the specificity, unadjusted (spec=1), and spec=0.999, spec=0.997, spec=0.995). Additionally, the false-positive adjusted estimation of the time-varying effective reproduction number R(t)
  • 3_summarise_nowcast_results.R: Summarise the results of the misclassification-adjusted nowcast for different assumptions on sensitivity and specificity. Figures are created based on the nowcasting results on the synthetic data as well as the saved intermediate results of the original data.
  • 4_supp_fig_2.R: Summary of the misclassification-adjusted nowcast based on Bavarian data from January, 21st, 2021. Creates Suppl. Figure 2
  • analysis_fun_stanmodel.R, functions.R, and the folder general contain helper functions for the misclassification adjustment and estimation of the Bayesian hierarchical nowcast via rstan as well as estimation of the time-varying R(t).
  1. results:
  • figures: Includes the original figures of the publication as well as the figures created from appying the codes based on the original data from Germany and the synthetic data from Bavaria
  • nowcast_bav Intermediate and final results for the estimation of the nowcast: imputed person-specific synthetic data (unadjusted and false-positive adjusted), results of the nowcast (based on original data and synthetic data as created from running the code files), results of the estimation of the time-varying effective reproduction number R(t)

The whole analysis can be reproduced in one go by running

source("run-analyses.R")

Note that the estimation of the Bayesian hierarchical model takes a considerable amount of time, and can be skipped. Figures can be created based on saved intermediate results.

mc_covid_cases_public's People

Contributors

felixguenther avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.