cfr (development version)

cfr 0.1.2

Updated version to fix instability in normal approximation with displayed Ebola example. This release includes:

  1. Removal of normal approximation from the .estimate_severity() function, instead using the binomial likelihood unless criteria for a Poisson approximation met.
  2. Updated README example focusing on first 30 days of outbreak, to emphasise effects of not accounting for delays to outcome.

cfr 0.1.1

Maintainer is changing to @adamkucharski (#143).

Major changes

Functions

  1. cfr_static():

  2. cfr_rolling():

  3. .estimate_severity():

  4. .select_func_likelihood(): Internal function added that chooses likelihood approximation function based on outbreak size and p_mid.

  5. test_fn_req_args() is updated to use Reduce(f = "+") and Map() rather than sum(mapply()).

Documentation

  1. Added package level documentation.

  2. Updated Readme with lifecycle (stable) and RepoStatus (Active) badges (#113), added DPG badge (#127), and updated the related projects section; corrected figure labelling (#114).

  3. Updated _pkgdown.yaml with a manual Bootstrap version (#136) reference sections, added a software permissions vignette (#125), and enabled development mode (#143).

  4. Updated WORDLIST.

  5. Updated all function documentation files (#134).

  6. Added section in distributions vignette on when it is acceptable to use continuous rather than discrete distributions.

  7. Corrected explanation of estimate_outcomes() in static severity vignette and added explanations of profile likelihood generation methods used in all severity vignettes (#143).

  8. Corrected equations in vignettes (#133) and removed .estimate_severity() from vignettes (#132).

Tests

  1. All snapshots are updated with severity values from new likelihood functions (#129).

  2. Added session global state checker script and setup options script (#119).

  3. All tests are updated to reflect that functions will sometimes throw informative messages.

  4. Tests using incidence2 suppress warnings on missing values (added in incidence2 v2.3.0) as filling missing values is the subject of the test for prepare_data.incidence2() (#143).

Package

  1. Added or updated GitHub Actions workflows for dependency changes, linting, updating the citation file, and updating the license year (#119, #137, #142).

  2. Updated other GHA workflows and infrastructure files to match the latest versions on epiverse-trace/packagetemplate (#119).

  3. Normalised DESCRIPTION file.

  4. Added tools/check.env from epiverse-trace/packagetemplate to suppress specific checks on package size, Rd cross references, GNU Make requirement, and non-ASCII strings (#142).

cfr 0.1.0

Initial CRAN submission of cfr, an R package to estimate the severity of a disease and ascertainment of cases while correcting for delays in outcomes of reported cases being known.

This release includes:

  1. Functions for the overall severity of an outbreak, the overall severity of an outbreak estimated with an expanding time series of data, and the time-varying severity of an outbreak,
  2. A function to estimate the number of outcomes to be expected from a given number of cases assuming a user-specified distribution of delays between cases and outcomes being known,
  3. A function to estimate the overall (static) ascertainment of cases in an outbreak by comparing the relevant severity measures against a user-specified baseline severity,
  4. A data preparation generic with an S3 method for the <incidence2> class from the incidence2 package,
  5. Example daily case and death data from the 1976 Ebola Virus Disease outbreak as reported in Camacho et al. (2014). https://doi.org/10.1016/j.epidem.2014.09.003,
  6. Example daily case and death data from the Covid-19 pandemic over the range 2020-01-01 to 2022-12-31 from the 19 countries with over 100,00 deaths over this period, as taken from the covidregionaldata package which is no longer on CRAN,
  7. Vignettes describing how to get started with severity estimation, and more detailed workflows on different kinds of severity estimation,
  8. A vignette on working with data from the incidence2 package, and a vignette on working with delay distributions,
  9. 100% code coverage,
  10. Workflows to render the vignettes and README as a website.

Correction

cfr v0.1.0 only includes functionality for static ascertainment calculations. The functionality for time-varying ascertainment is expected to be included in future versions, and an older implementation was removed just prior to release. The news section for cfr v0.1.0 has been updated to reflect this.

mirror server hosted at Truenetwork, Russian Federation.