Skip to content

Commit 0584d0d

Browse files
committed
Small note on binomial
1 parent adf14fa commit 0584d0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stochasticity.qmd

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ sir <- odin({
6161

6262
This is a discrete-time model (using `update()` and not `deriv()`) as stochastic models must run in discrete time. We use `dt` to scale the rates, and adjusting `dt` will change the way that stochasticity affects the dynamics of the system.
6363

64+
The call to `Binomial()` samples from a binomial distribution, returning the number of successes from `S` (or `I`) draws, each with probability `p_SI` (or `p_IR`).
65+
6466
```{r}
6567
sir
6668
```

0 commit comments

Comments
 (0)