objornstad / epimdr Goto Github PK
View Code? Open in Web Editor NEWR package for "Epidemics: Models and data using R"
R package for "Epidemics: Models and data using R"
In Chapter 7:
Section: 7.7: In Host Malaria Dynamics:
In the code for Data (SH9) log- transformation and lagging of the data is undertaken which leads to "NAN" and "Inf" values in the log.para, log.para.lag as well as log.rbcs.lag.
To rectify that, the code given in the book does not work and I found it to be working if I change the following ๐๐ป :
For log.para:
log.para[is.infinite(log.para)] = min(log.para[!is.infinite(log.para)], na.rm = T)
For log.para.lag
log.para.lag[is.infinite(log.para.lag)] = min(log.para.lag[!is.infinite(log.para.lag)], na.rm = T)
For log.rbcs.lag
log.rbcs.lag[is.nan(log.rbcs.lag)] = min(log.rbcs.lag[!is.nan(log.rbcs.lag)], na.rm = T)
The above code give me the results and the plot showed in the book.
Let me know If I am right or wrong (If I am missing something). It would be helpful.
Thank you.
On page 53 the 2007 Legrand SEIHFR model is specified; however, I noticed the dF/dt component to be slightly different from what is presented in that paper. In the associated epimdr book it seems to be referencing the gamma value for the 'removed' compartment, not for death. I didn't see this specific issue listed in the errata so I thought I would share. I highlighted the original model's specification for comparison, but maybe I am missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.