epiverse-trace / epiparameter

R package with library of epidemiological parameters for infectious diseases and functions and classes for working with parameters
https://epiverse-trace.github.io/epiparameter
Other
33 stars 11 forks source link

Select truncation adjusted library entry with `epidist_db()` #323

Closed joshwlambert closed 5 months ago

joshwlambert commented 5 months ago

This PR addresses #243 by updating epidist_db() to select parameter entries that account for truncation in their estimation methods ($method_assess$right_truncated == TRUE in the <epidist> and right_truncated: true in the library database parameters.json).

A new unit test has been added to check that epidist_db() selects an entry with truncation when available. The function documentation of epidist_db() (?epidist_db) has been updated to state that truncation adjusted entries are chosen if available.