You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for missing NAs in estimate_infection() model (#528)
* add a lookup to estimate_infections
* add R side support
* don't internally impute missing as zero
* update news
* fix data preprocessing order
* correction data ingestion
* clean up filtering of leading zeros
* error check create_clean_reported_cases and add unit tests to cover function
* correct handling of missing data in data preprocessing:
* refine data preprocessing
* update news and tests
* update global variables
* Update NEWS.md
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
* Update R/create.R
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
* Update R/create.R
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
* Update R/create.R
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
* fix line length linting
* Document
---------
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: GitHub Actions <actions@github.com>
Copy file name to clipboardExpand all lines: NEWS.md
+1
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
* The functions `get_dist`, `get_generation_time`, `get_incubation_period` have been deprecated and replaced with examples. By @sbfnk in #481 and reviewed by @seabbs.
6
6
* The utility function `update_list()` has been deprecated in favour of `utils::modifyList()` because it comes with an installation of R. By @jamesmbaazam in #491 and reviewed by @seabbs.
7
7
* The `fixed` argument to `dist_spec` has been deprecated and replaced by a `fix_dist()` function. By @sbfnk in #503 and reviewed by @seabbs.
8
+
* Updated `estimate_infections()` so that rather than imputing missing data, it now skips these data points in the likelihood. This is a breaking change as it alters the behaviour of the model when dates are missing from a time series but are known to be zero. We recommend that users check their results when updating to this version but expect this to in most cases improve performance. By @seabbs in #528 and reviewed by @sbfnk.
0 commit comments