epiverse-trace / serofoi

Estimates the Force-of-Infection of a given pathogen from population based sero-prevalence studies
https://epiverse-trace.github.io/serofoi/
Other
17 stars 4 forks source link

Consider creating an S3 class for objects created by serofoi #90

Closed Bisaloo closed 8 months ago

Bisaloo commented 1 year ago

serofoi currently includes some functions to deal with the objects it creates, such as extract_seromodel_summary() or plot_seromodel(). It would be more idiomatic in R and probably simpler for users to rely of standard S3 dispatch for this.

This way, instead of having to remember the name extract_seromodel_summary(), users would just have to type summary(), the same way they do when they work with, e.g., lm objects.

jamesmbaazam commented 1 year ago

I like this idea and would be happy to collaborate on this.

ben18785 commented 8 months ago

We decided this isn't worth pursuing since we are going to return the raw stanfit objects.