Code Monkey home page Code Monkey logo

covidreproductionnumber_update.jl's Introduction

CovidReproductionNumber.jl

Install dependencies

You need julia installed, preferably a version higher than 1.6.

You can run Julia in the directory of CovidReproductionNumber.jl, using the project environment as:

cd CovidReproductionNumber.jl
julia --project=.

After that, type

Pkg.instantiate()

This should install the necessary Julia packages.

Run the R estimators

We assume your input is placed in input/data-20220103.xlsx. The input excel file must contain a single sheet with several correctly marked columns. You can check the suitability of the input file using script check_input.jl, as follows:

julia --project=. check_input.jl input/data-20220103.xlsx

You may get an output like this (or eventually an error with a description of the problem):

┌ Warning: Last entry is older than 1 week!
└ @ Main ~/work/CovidReproductionNumber.jl/check_input.jl:36
[ Info: Age of the last entry is 136 days
[ Info: Check finished OK.

Reff and Rt analyses may be run as follows:

julia --project=. estimate_r_eff.jl input/data-20220103.xlsx
julia --project=. estimate_r_t.jl input/data-20220103.xlsx

The output should be generated into corresponding files:

input/Reff_estimate_data-20220103.xlsx.csv
input/Rt_estimate_data-20220103.xlsx.csv

covidreproductionnumber_update.jl's People

Contributors

atteaalto avatar daniele-proverbio avatar exaexa avatar laurentheirendt avatar

Forkers

atteaalto

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.