Skip to content

WIP impact diagnostics fns#17

Open
pratikunterwegs wants to merge 32 commits into
mainfrom
dev-zoe
Open

WIP impact diagnostics fns#17
pratikunterwegs wants to merge 32 commits into
mainfrom
dev-zoe

Conversation

@pratikunterwegs

@pratikunterwegs pratikunterwegs commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This PR is WIP replacing #15.

PR desc copied over:

This PR adds additional functions from [https://github.com/vimc/montagu-reports/tree/main/src/rapid-model-run-impact] a key report for the VIMC Science & Policy team.

Functions added generate central estimate impact plots and coverage and fvp plots per year, country and view.

First attempt at ensuring functions are package-ready/ utilising roxygen etc. so any comment welcome.

TODO's in script fn_plotting_impact.R with specific questions. I understand testing may need to be stronger/ the next step.

@pratikunterwegs pratikunterwegs marked this pull request as ready for review July 9, 2026 14:37
Comment thread R/fn_plotting_impact.R Outdated
Comment thread R/fn_plotting_impact.R
Comment thread R/fn_plotting_impact.R
#' @export
plot_impact <- function(
data,
country = PINE,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will fail for certain diseases. Although we use PINE as a default for a quick glace at estimates instead of running every country, there will not be some diseases in PINE countries, for example YF.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add something like, if some or any of PINE present, plot those? Likely at least one PINE country will be present in all disease datasets.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a failure for a disease-country mismatch is okay, we provide PINE as a sensible default but there's no expectation that country is always present - the function will error informatively, and the user can change either data or country.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants