Skip to content

Commit

Permalink
Use withr for cores
Browse files Browse the repository at this point in the history
Co-authored-by: Andree Valle Campos <[email protected]>
  • Loading branch information
adamkucharski and avallecam authored Jun 21, 2024
1 parent ae571c9 commit 5a72a4f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions analyses/reconstruct_transmission/estimate_infections.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ epinow_estimates <- epinow(
reported_cases = incidence_data, # time series data
generation_time = generation_time_opts(serial_interval_covid), # assume generation time = serial interval
delays = delay_opts(infection_to_death), # delay from infection-to-death
rt = NULL, # no Rt estimation
stan = stan_opts( # set up options for inference
cores = 4, samples = 1000, chains = 3,
control = list(adapt_delta = 0.99)
)
rt = NULL # no Rt estimation
)
# Extract infection estimates from the model output
Expand Down

0 comments on commit 5a72a4f

Please sign in to comment.