Coder Social home page Coder Social logo

covoid's People

Contributors

handcock avatar markhanly avatar oizin avatar timchurches avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

covoid's Issues

Population density?

Very interesting work. Out of interest, do these models factor for population density and how if so?

Resolve inconsistent use of deSolve and EpiModel

Some models are built directly on deSolve, whereas other use the EpiModel interface to deSolve. This leads to inconsistent behaviour when e.g. printing the final object

Urgency: medium - high

Import of cases

Add import of cases to all models (rate per day):

  • SIR

  • SEIR

  • Age structured SIR

  • Age structured SEIR

  • Best approach for models with several infectious compartments e.g. SEIR @timchurches?

generalisation - wrapper functions

Rather than requiring use of functions like x = sir_param(...); y = sir_state0(...) and simulate_sir(...x,y) for every model, add a layer of abstraction allowing use of (say) x = model_param(...); y = model_state0(...) and simulate(model = 'sir',....x,y)

Help me with issues found when installing this package

I wish you can help me with this. Since I am in China using this, there are some little bit Chinese, I hope that will not be a problem.

devtools::install_github("cbdrh/covoid",build_vignettes = TRUE)
Downloading GitHub repo cbdrh/covoid@HEAD
√ checking for file 'C:\Users\86158\AppData\Local\Temp\Rtmpq4kWe8\remotes5bc8289b95\CBDRH-covoid-2f2aaad/DESCRIPTION' (1.3s)

  • preparing 'covoid': (6.6s)
    √ checking DESCRIPTION meta-information ...
    Warning: C:/Users/86158/AppData/Local/Temp/RtmpWQJdjs/Rbuild4da0201a2a9/covoid/man/create_intervention.Rd:38: unexpected section header '\description'
    Warning: C:/Users/86158/AppData/Local/Temp/RtmpWQJdjs/Rbuild4da0201a2a9/covoid/man/create_intervention.Rd:43: unexpected END_OF_INPUT '
    '

  • installing the package to process help pages (447ms)
    E creating vignettes (2m 7.8s)
    --- re-building 'age-structured-mixing-background.Rmd' using rmarkdown
    Scale for 'fill' is already present. Adding another scale for 'fill', which
    will replace the existing scale.
    Scale for 'fill' is already present. Adding another scale for 'fill', which
    will replace the existing scale.
    Scale for 'fill' is already present. Adding another scale for 'fill', which
    will replace the existing scale.
    Scale for 'fill' is already present. Adding another scale for 'fill', which
    will replace the existing scale.
    Warning in is.na(caption) :
    is.na()不适用于类别为'expression'的非串列或非矢量
    Warning: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "age-structured-mixing", and the latter is "Age structured epidemic models". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
    --- finished re-building 'age-structured-mixing-background.Rmd'

    --- re-building 'age-structured-mixing.Rmd' using rmarkdown
    Warning: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "age-structure-mixing", and the latter is "Age structured epidemic models in COVOID". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
    --- finished re-building 'age-structured-mixing.Rmd'

    --- re-building 'available-models.Rmd' using rmarkdown
    Quitting from lines 342-349 (available-models.Rmd)
    Error: processing vignette 'available-models.Rmd' failed with diagnostics:
    Object not found 'Ece'
    --- failed re-building 'available-models.Rmd'

    --- re-building 'covoid-model-usage.Rmd' using rmarkdown
    Warning: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "covoid-model-usage", and the latter is "The COVOID model". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
    --- finished re-building 'covoid-model-usage.Rmd'

    SUMMARY: processing the following file failed:
    'available-models.Rmd'

    错误: Vignette re-building failed.
    此外: Warning message:
    In tools::buildVignettes(dir = ".", tangle = TRUE) :
    Files named as vignettes but with no recognized vignette engine:
    'vignettes/dynamic-vaccination-strategies.Rmd'
    'vignettes/static-vaccination-models.Rmd'
    (Is a VignetteBuilder field missing?)
    停止执行
    错误: Failed to install 'covoid' from GitHub:
    System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr (last 10 lines):
    E> SUMMARY: processing the following file failed:
    E> 'available-models.Rmd'
    E>
    E> 错误: Vignette re-building failed.
    E> 此外: Warning message:
    E> In tools::buildVignettes(dir = ".", tangle = TRUE) :
    E> Files named as vignettes but with no recognized vignette engine:
    E> 'vignettes/dynamic-vaccination-strategies.Rmd'
    E> 'vignettes/static-vaccination-models.Rmd'
    E> (Is a VignetteBuilder

Clean up internal datasets

  • All the contact matrices internally load R objects called cm_all (although the user doesn't see this)
  • make the age distribution and contact matrix country names consistent

Urgency: low-medium

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.