Skip to content

Commit

Permalink
fix data list and add to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Oct 11, 2023
1 parent 52d4079 commit ef3e2ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ create_rt_data <- function(rt = rt_opts(), breakpoints = NULL,
}

# check incidence feedback
if (names(rt$incidence_feedback) != c("mean", "sd")) {
if (!identical(names(rt$incidence_feedback), c("mean", "sd"))) {
stop("incidence_feedback must be a list with mean and sd")
}

Expand Down
5 changes: 4 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ estimates <- epinow(
reported_cases = reported_cases,
generation_time = generation_time_opts(generation_time),
delays = delay_opts(incubation_period + reporting_delay),
rt = rt_opts(prior = list(mean = 2, sd = 0.2)),
rt = rt_opts(
prior = list(mean = 2, sd = 0.2),
incidence_feedback = list(mean = 0, sd = 0.0001)
),
stan = stan_opts(cores = 4, control = list(adapt_delta = 0.99)),
verbose = interactive()
)
Expand Down

0 comments on commit ef3e2ad

Please sign in to comment.