Giter Site home page Giter Site logo

covid-npi's Introduction

covid-npi

Analysis code for:

A viral perspective on worldwide non-pharmaceutical interventions against COVID-19

Jean-Philippe Rasigade, Anaïs Barray, Julie Teresa Shapiro, Charlène Coquisart, Yoann Vigouroux, Antonin Bal, Grégory Destras, Philippe Vanhems, Bruno Lina, Laurence Josset, Thierry Wirth.

medRXiv preprint manuscript

Requirements

R software (tested on Windows 10 with v3.6.1).

Packages

  • ape
  • data.table
  • lubridate
  • survival
  • coxme
  • stringr
  • beeswarm
  • plotrix
  • wordcloud

A workstation with at least 24 CPU cores is recommended to run scripts involving mixed-effect models. Use the special flag rebuild = FALSE to bypass these computations.

Usage

Scripts should be run individually in the following order:

Pre-treatment scripts

These scripts perform alignment operations, especially between country identifiers; and extraction of branch length data.

  • S1_dataprep_countries.R
  • S2_dataprep_tree.R
  • S3_dataprep_branch_lengths.R
  • S4_dataprep_npis.R

Analysis scripts

These scripts generate the results and figures of the study.

  • A1_descriptive_stats_by_country.R
  • A2_branch_length_distribution.R
  • A3_divergence_rates_per_country.R
  • A4_npi_timing.R
  • A5_npi_univariate.R
  • A6_npi_multivariate.R
  • A7_SIR_models.R

Flowchart of selection steps

  • Z1_flowchart.R

covid-npi's People

Contributors

jprasigade avatar

Stargazers

MaxDevBlock avatar

Watchers

James Cloos avatar  avatar

Forkers

maxdevblock

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.