-
Notifications
You must be signed in to change notification settings - Fork 1
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
Initial implementation of the comparison
class
#12
Conversation
Overall really nice work. The code is clean and easily understandable. It's the first time I've reviewed the I did not find any methodological issues or bugs. Most of my comments are subjective so feel free to incorporate or ignore. General package comments:
Vignette:
Pkgdown:
Functions:
Documentation
|
Thanks for taking a look @joshwlambert! I've added specific fix commits in the conversations, just some general replies here. I can merge this once you sign off on it. I've turned the package number down to 0.0.0.9000 as suggested, and noted the commit-specific {epidemics} dependency - that's a work in progress so I want to refer to a version whose outputs are known. The missing citation should have been fixed after adding a Bib file. I've taken away the manual addition of the logo to the website, and locally I get it looking alright with one logo now. Re: folding Function names The In The
The convenience functions might also go away and are mostly included for convenience during development. They could also be expanded to become more useful, of course. I've made edits to the documentation following the suggestions, except for the focus on {finalsize} - I'm not adding anything from {epidemics} now because it's unclear what {epidemics} is supposed to achieve - this is a work in progress too. |
@pratikunterwegs Thanks for making the suggested changes. Everything looks in order to me. Will approve for this to be merged. |
Thanks a bunch @joshwlambert for taking the time. |
This PR includes an initial implementation of the
comparison
class discussed in #4. This includes a number of internal changes and updates to howscenario
objects are structured, but with only minor departures from #3. A number of helper functions have been added, some of which are already discussed in #5 (which is a non-exhaustive list).A minimal vignette shows some of this functionality, and for now focuses on
scenario
objects with a very brief introduction tocomparison
objects; this is WIP #16.comparison
class, with helper functions to get scenario names, get the baseline scenario name, and set new scenario names and a new baseline scenario: fixes Function to change baseline scenario in a comparison #13.match_variables
, with the option to match only parameter or information names, or to match names and values. This function will be developed further for use withincomparison
s to filter for scenarios that are comparable to the baseline.scenario
objects: fixes Function to add information to scenarios #14.A convenient way to review these changes is to check out this branch, and build the
{pkgdown}
website, which should render the documentation and initial vignette neatly.