convert_to_logsd: Convert mean and sd to log standard deviation for a log...

convert_to_logsdR Documentation

Convert mean and sd to log standard deviation for a log normal distribution

Description

[Stable] 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().

Usage

convert_to_logsd(mean, sd)

Arguments

mean

Numeric, mean of a distribution

sd

Numeric, standard deviation of a distribution

Value

The log standard deviation of a lognormal distribution

Examples


convert_to_logsd(2, 1)

epiforecasts/EpiNow2 documentation built on April 27, 2024, 9:15 p.m.