diff --git a/NEWS.md b/NEWS.md index e68a8f9e5..7ba6abe95 100644 --- a/NEWS.md +++ b/NEWS.md @@ -7,6 +7,7 @@ * The `fixed` argument to `dist_spec` has been deprecated and replaced by a `fix_dist()` function. By @sbfnk in #503 and reviewed by @seabbs. * Updated `estimate_infections()` so that rather than imputing missing data, it now skips these data points in the likelihood. This is a breaking change as it alters the behaviour of the model when dates are missing from a time series but are known to be zero. We recommend that users check their results when updating to this version but expect this to in most cases improve performance. By @seabbs in #528 and reviewed by @sbfnk. * `simulate_infections` has been renamed to `forecast_infections` in line with `simulate_secondary` and `forecast_secondary`. The terminology is: a forecast is done from a fit to existing data, a simulation from first principles. By @sbfnk in #544 and reviewed by @seabbs. +* A new `simulate_infections` function has been added that can be used to simulate from the model from given initial conditions and parameters. By @sbfnk in . ## Documentation diff --git a/tests/testthat/test-simulate_infections.R b/tests/testthat/test-simulate_infections.R index 847ab2845..18035cdc6 100644 --- a/tests/testthat/test-simulate_infections.R +++ b/tests/testthat/test-simulate_infections.R @@ -85,7 +85,7 @@ test_that("simulate_infections with a given estimate is deprecated", { ) }) -test_that("simulate_infecitons works as expected with given parameters", { +test_that("simulate_infections works as expected with given parameters", { R <- data.frame( date = seq.Date(as.Date("2023-01-01"), length.out = 14, by = "day"), R = c(rep(1.2, 7), rep(0.8, 7))