A lognormal distribution as a <dist_spec>, given either by its natural
parameters meanlog/sdlog or by its mean/sd.
Arguments
- meanlog, sdlog
mean and standard deviation of the distribution on the log scale with default values of
0and1respectively.- mean, sd
Mean and standard deviation of the distribution, as an alternative to
meanlog/sdlog.- ...
Limits of the distribution, passed to
bound_dist().
See also
Distributions for an overview and the other distributions.
Examples
LogNormal(mean = 4, sd = 1)
#> - lognormal distribution:
#> meanlog:
#> 1.4
#> sdlog:
#> 0.25
LogNormal(mean = 4, sd = 1, max = 10)
#> - lognormal distribution (max: 10):
#> meanlog:
#> 1.4
#> sdlog:
#> 0.25
# Uncertain parameters must be given as the natural parameters
LogNormal(meanlog = Normal(1.5, 0.5), sdlog = 0.25, max = 10)
#> - lognormal distribution
#> Returning NA: this distribution has uncertain parameters.
#> ℹ Resolve the uncertainty first with `fix_parameters()`.
#> This message is displayed once every 8 hours.
#> (max: 10):
#> meanlog:
#> - normal distribution:
#> mean:
#> 1.5
#> sd:
#> 0.5
#> sdlog:
#> 0.25