Skip to content

Commit

Permalink
change chains from 3 to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
avallecam committed Jun 24, 2024
1 parent 6e2bbd9 commit fb8ca32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions episodes/quantify-transmissibility.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -429,15 +429,15 @@ estimates <- EpiNow2::epinow(

### Do not wait for this to continue

For the purpose of this tutorial, we can optionally use `EpiNow2::stan_opts()` to reduce computation time. We can specify a fixed number of `samples = 1000` and `chains = 3` to the `stan` argument of the `EpiNow2::epinow()` function. We expect this to take approximately 3 minutes.
For the purpose of this tutorial, we can optionally use `EpiNow2::stan_opts()` to reduce computation time. We can specify a fixed number of `samples = 1000` and `chains = 2` to the `stan` argument of the `EpiNow2::epinow()` function. We expect this to take approximately 3 minutes.

<!-- We can optionally set `stan = stan_opts(method = "vb")` to use an approximate sampling method. We expect this to take less than 1 minute. -->

```r
# you can add the `stan` argument
EpiNow2::epinow(
...,
stan = EpiNow2::stan_opts(samples = 1000, chains = 3)
stan = EpiNow2::stan_opts(samples = 1000, chains = 2)
)
```

Expand Down

0 comments on commit fb8ca32

Please sign in to comment.