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

Add conversion for median and dispersion of lognormal distribution to parameters #378

Closed joshwlambert closed 1 month ago

joshwlambert commented 2 months ago

This PR adds a new summary statistic conversion calculation to .convert_summary_stats_lnorm() which is called by the convert_summary_stats_to_params() function. The conversion is from median and dispersion to the lognormal parameters (meanlog and sdlog).

This conversion is useful for papers that report in median and dispersion, such as Lessler et al. (2009).