Skip to content

Commit

Permalink
add news item
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Feb 19, 2024
1 parent 9581066 commit 45204f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-simulate_infections.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 45204f8

Please sign in to comment.