Skip to contents

Calculate the parameters of a log normal distribution from estimated 0.05 and 0.95 quantile. Also calculate the fractional difference between the estimated median value (0.5 quantile) and the median value calculated from the 0.05 and 0.95 values.

Usage

lnorm_param(p05, p95, p50)

Arguments

p05

the "low" value, the 0.05 quantile.

p95

the "high" value, the 0.95 quantile.

p50

the most likely value, the 0.5 quantile.

Value

a list including the meanlog and sdlog parameters, as well as the fractional difference between the estimated and actual median (0.5 quantile), mdiff.

Examples

lnorm_param(100000, 20000000, 1425000)
#> $meanlog
#> [1] 14.16208
#> 
#> $sdlog
#> [1] 1.610574
#> 
#> $mdiff
#> [1] 0.007627163
#>