`R/utilities.R`

`convert_to_logsd.Rd`

Convert from mean and standard deviation to the log standard deviation of the
lognormal distribution. Useful for defining distributions supported by
`estimate_infections`

, `epinow`

, and `regional_epinow`

.

`convert_to_logsd(mean, sd)`

mean | Numeric, mean of a distribution |
---|---|

sd | Numeric, standard deviation of a distribution |

The log standard deviation of a lognormal distribution

```
convert_to_logsd(2, 1)
#> [1] 0.4723807
```