Creates an S3 object representing a log-normal distribution with the given meanlog and sdlog parameters. The log-normal PDF is f(t)=1tsdlog2πexp((logtmeanlog)22sdlog2)

for t>0.

lognormal(meanlog = 0, sdlog = 1)

Arguments

meanlog

Mean of the distribution on the log scale (default 0).

sdlog

Standard deviation on the log scale (default 1), must be positive.

Value

A lognormal object with classes c("lognormal", "univariate_dist", "continuous_dist", "dist").

Examples

x <- lognormal(meanlog = 0, sdlog = 1)
mean(x)
#> [1] 1.648721
vcov(x)
#> [1] 4.670774
format(x)
#> [1] "Log-normal distribution (meanlog = 0, sdlog = 1)"