r_step
argument) to set the step width for the AR(1) process on the growth rate. This means that when fitting to daily data, for example, the growth rate can be specified to only change weekly. This increases the tractability of the model hence reducing run-times and may match the underlying epidemiology better in some settings.beta
) and specify the expected amount of correlation between strains in the "correlated" model (lkj
).r_forecast
which controls if the growth rate is allowed to vary outside the range of the data.array
stan notation.cmdtan 2.32.0
.linewidth
in geom_line
as size
has been depreciated.scoringutils
package to streamline evaluating forecasts using proper scoring rules.fv_score_forecast()
to the README.plot_cases()
to use a log 2 scaling rather than a log scaling.central
. This controls whether central estimates (i.e the mean and median) are shown. In a change to the default visualisations these are now not shown automatically but by setting central = TRUE
the user can elect to add these estimates to the plot.forecast()
function where the prior specifications for the initial growth and the variant scaling were only partially included.summary.fv_forecast()
failed to return diagnostics.fv_score_forecast()
to support scoringutils 1.0.0
.summary
and plot
methods for forecast()
and fv_tidy_posterior()
as interfaces to lower level functions.fv_tidy_posterior()
.plot_voc_advantage()
to extract and plot this.plot_voc_advantage()
to plot_posterior
as an additional output.timespan
argument that allows custom date processing. This allows the use
of data with non-weekly spaces (though spacing must be constant across both sequences and case counts). voc_frac
from voc
due to the new variant advantage label.plot_voc()
has been renamed plot_voc_frac()
due to the new plot_voc_advantage()
function.voc_label
was not being passed by forecast()
to lower level methods and hence new labels specifying the VOC were not being assigned.forecast
family to accept custom data and forecast extraction functions.forecast
with new testsfv_posterior
to allow it be used with forecast
.generate_obs()
to work with all strain models and adds unit tests for all function functionality.r-universe
.{preferably}
.fv_example()
which can be used to load built in example output and scripts. This is used for postprocessing and plotting examples as well as for testing plotting on static input.load_model
, summarise_posterior
, and functions prefixed with stan_
have been renamed with the fv_
prefix).forecast
function and wrappers enabling users to supply custom models but make use of the remaining package functionality.data.table
output.fv_tidy_posterior
now returns a single data.table and all downstream processing and plotting functions have been updated to use this formaforecast
has been updated to use the framework from forecast_dt
and forecast_dt
has been removed.combine_posteriors_dt
has been removed in favour of unnest_posterior
. This allows for the output of forecast
(and wrappers that produce a data.table) to be easily untested and then used without additional changes in downstream plotting and processing functions.update_voc_label
as part of the workflow in forecast
and exposed a user facing argument to control the label.fv_tidy_posterior()
(and hence forecast()
) as well as a standalone option via update_voc_label()
.cmdstanr
from GitHub.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.