-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance, delete or leave <multi_epidist>
#202
Comments
Tagging with dev day for discussion during the {epiparameter} development day. |
Moving forward with {epiparameter} development it would be good to get a final decision on this. I'm in favour of leaving Thoughts @Bisaloo @chartgerink @pratikunterwegs @jamesmbaazam? |
Just thinking through a use-case I'm familiar with, passing delay density functions to {cfr}: IIRC, if I wanted to estimate CFR using multiple onset-to-death distributions, say from different studies on the same pathogen, I would have to do lapply(
multi_epidist, function(edist) { cfr_*(data, delay_density = \(x) density(edist, x) ) }
) Does the |
Functionally, the addition of |
More than maintenance, my main issue is the increased complexity for new package users. When approaching epiparameter, they have quite a lot to learn with the custom classes and understanding the differences between the classes is one extra hurdle. If the differences are minor, then it's probably easier to merge the classes. |
Perhaps I haven't explained myself clearly, or the package documentation is not clear on this. The intention for the
Which classes are you proposing to merge? |
Thanks @joshwlambert for tagging!
As the package maintainer, you can decide based on the feedback provided, if you feel you have sufficient feedback. |
Removing "devday" label as this issue is not relevant for the Epiverse-Imperial Epiparameter workshop. |
Another possibility that just occurred to me while working with
I'm not sure I prefer this option, but thought it would be good to put it into the discussion before making a final decision. |
Having a vectorized class can often be a good option and it ultimately depends on whether you expect all your methods & functions acting on Functions such as |
I've implemented a improvement to the I'l summarise how the new implementation works with respect to the points raised in the comments above:
I will leave PR #326 open until the end of the week so please provide feedback within this time. Once the PR is merged I will close this issue. |
PR #326 has been merged into |
The
<multi_epidist>
class in {epiparameter} only has one purpose: improve printing when there are a large number of<epidist>
entries returned byepidist_db()
. From #197 there was some difference of opinion on the utility of such as class and whether it should be kept in the package, or whether it is useful and as it is used for printing the print method could be improved with the use of {cli}. This issue is to discuss which of these options is best for future development.The text was updated successfully, but these errors were encountered: