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

Enhance `<epiparameter>` printing #419

Closed joshwlambert closed 1 day ago

joshwlambert commented 1 day ago

This PR improves the printing/formatting (print() & format()) of <epiparameter> objects by now printing summary statistics if the <epiparameter> object is unparameterised and summary statistics are available. The units of the parameter estimates are also printed for both parameterised and unparameterised <epiparameter> objects.

This PR also moves the format() methods into a separate .R file and moves the <epiparameter> print method into print.R.

Units snapshot tests of print() methods have been updated.