Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/update_examples' into update_exa…
Browse files Browse the repository at this point in the history
…mples
  • Loading branch information
jamesmbaazam committed Dec 13, 2024
2 parents 6b0140f + 0e3b850 commit 8e39c18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vignettes/estimate_infections_options.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Here, instead of doing so we assume that we know about truncation with mean of 1
```{r define_truncation}
trunc_dist <- LogNormal(
mean = 0.5,
sd = 0.1,
sd = 0.5,
max = 3
)
trunc_dist
Expand Down
4 changes: 2 additions & 2 deletions vignettes/estimate_infections_workflow.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ plot(fixed_gamma)
```

If distributions are variable, the values with uncertainty are treated as [prior probability densities](https://en.wikipedia.org/wiki/Prior_probability) in the Bayesian inference framework used by _EpiNow2_, i.e. they are estimated as part of the inference.
For example, to define a variable gamma distribution where uncertainty in the mean is given by a normal distribution with mean 3 and sd 2, and uncertainty in the standard deviation is given by a normal distribution with mean 1 and sd 0.1, with a maximum value 10, you would write
For example, to define a variable gamma distribution where uncertainty in the shape is given by a normal distribution with mean 3 and sd 2, and uncertainty in the rate is given by a normal distribution with mean 1 and sd 0.1, with a maximum value 10, you would write

```{r}
uncertain_gamma <- Gamma(mean = 3, sd = 0.1, max = 10)
uncertain_gamma <- Gamma(shape = Normal(3, 2), rate = Normal(1, 0.1), max = 10)
uncertain_gamma
```

Expand Down

0 comments on commit 8e39c18

Please sign in to comment.