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

Allow `<epidist>` to contain an exponential distribution #333

Closed joshwlambert closed 5 months ago

joshwlambert commented 5 months ago

This PR addresses #328 by adding the ability to construct and print <epidist> objects with an exponential distribution.

The create_epidist_prob_dist(), is_epidist_params(), clean_epidist_params() and family.epidist() are updated to accommodate an exponential distribution. .clean_epidist_params_exp() is added to standardise the various valid parameterisations for the exponential distribution input by users.

Unit tests have been added for create_epidist_prob_dist() and clean_epidist_params().