-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose dt/steps_per_day control #188
Conversation
Codecov Report
@@ Coverage Diff @@
## master #188 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 14 14
Lines 1196 1200 +4
=========================================
+ Hits 1196 1200 +4
Continue to review full report at Codecov.
|
I added some tests but the Rt test is failing: sircovid/tests/testthat/test-carehomes-rt.R Line 147 in 50e118c
Maybe @edknock you could look at this? I now have the same model with dt = 1, 1/4 and 1/100 and the Rt are all different, although not to the extent that it could just be a forgotten *dt or /dt somewhere. Still some noticeable differences (5-15%) which require some investigation... |
…namic is totally different
Update on the above. I implemented a function to update the gamma parameters before running the model, so that the resulting mean duration of the compartments using the discretised gamma would match the mean of the continuous gamma distribution. This has fixed the Rt calculations - which are now similar across different dt values, but generates substantially different epidemic dynamics - e.g. attack rate is very different with different rt values. |
Just the core parameter handling part done here. Someone needs to check that the epi looks ok.
We should expand the testing to cover things like Rt but I wonder if this might actually not be that bad
Fixes #187