Contains models and tools to produce short-term forecasts for both case and sequence notifications assuming circulation of either one or two variants. Tools are also provided to allow the evaluation of the use of sequence data for short-term forecasts in both real-world settings and in user generated scenarios.
This PR adds testing of plotting functions. Tests are both based on on the fly generated model fits (as used to testsummarise_posterior etc) which check that plot functions produce a plot, and saved example data which check that plots look as expected with stable inputs.
To make this possible package examples have been added (in inst/extdata) and a function, load_example has been added to make accessing this data easier.
load_example has also been used to return example model fits as scripts for both model types and to allow for interactive postprocessing and plotting examples without requiring a stan fit (or in fact the cmdstanr tool chain to be present).
This PR adds testing of plotting functions. Tests are both based on on the fly generated model fits (as used to test
summarise_posterior
etc) which check that plot functions produce a plot, and saved example data which check that plots look as expected with stable inputs.To make this possible package examples have been added (in
inst/extdata
) and a function,load_example
has been added to make accessing this data easier.load_example
has also been used to return example model fits as scripts for both model types and to allow for interactive postprocessing and plotting examples without requiring a stan fit (or in fact thecmdstanr
tool chain to be present).