tests/testthat/test-summarise_posterior.R

test_fv_tidy_posterior(
  "The single strain model can have its posterior summarised as expected",
  fit1, posterior1, 1, obs,
  equal = TRUE
)

test_fv_tidy_posterior(
  "The two strain model can have its posterior summarised as expected",
  fit2, posterior2, 2, obs,
  equal = TRUE
)

test_fv_tidy_posterior(
  "The two strain model can have its posterior summarised as expected with
   a custom quantile list",
  fit2, posterior2, 2, obs,
  equal = FALSE, probs = c(0.2, 0.3, 0.6, 0.8)
)

test_fv_tidy_posterior(
  "The two strain model can have its posterior summarised as expected with
   a custom VOC label",
  fit2, posterior2, 2, obs,
  equal = FALSE, voc_label = "Delta",
)
epiforecasts/forecast.vocs documentation built on May 14, 2023, 2 p.m.