Add testing to the outbreak model with test sensitivity#196
Add testing to the outbreak model with test sensitivity#196joshwlambert merged 15 commits intoepiforecasts:mainfrom
Conversation
WalkthroughThe changes introduce test sensitivity as a new intervention option. A test_sensitivity parameter (default 1) is added to intervention_opts and documented. The outbreak simulation logic now models test outcomes using rbinom sampling, applying false negative rates to adjust isolation behaviour for symptomatic cases, alongside related dependency imports and global variable declarations. Changes
Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
R/outbreak_step.R (1)
17-22: Update the interventions parameter doc to includetest_sensitivity.
The description still says it contains onlyquarantine, which is now outdated.✏️ Proposed doc tweak
-#' [intervention_opts()]. Contains one element: `quarantine` +#' [intervention_opts()]. Contains two elements: `quarantine` and +#' `test_sensitivity`
sbfnk
left a comment
There was a problem hiding this comment.
looks good to me except minor doc comments - for future issue testing of contacts (irrespective of symptoms) would be a good addition.
pearsonca
left a comment
There was a problem hiding this comment.
Minor items to consider
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
pearsonca
left a comment
There was a problem hiding this comment.
extracted one remaining concern i had as new issue; otherwise LGTM
Co-authored-by: Carl A. B. Pearson <pearsonca@users.noreply.github.com>
This PR addresses #176 by adding testing to the epidemic model. The testing is assumed to be conducted for all symptomatic individuals in the model and the
test_sensitivityargument added tointervention_opts()controls which proportion of individuals get a false negative test result using binomial sampling.Symptomatic individuals in the model that are tested and get a false negative are not isolated throughout their infectious period (the same as asymptomatic individuals).
The variable
missedis renamed totracedand the boolean inverted. The argumentsymptomatic_ascertainedis renamed tosymptomatic_traced. These two changes harmonise the variable naming in the simulation code, addressing #208.Summary by CodeRabbit
Release Notes
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.