powered by
get the mode of a log-normal distribution
getLognormMode(mu, sigma)
center parameter (mean at log scale, log(median))
scale parameter (standard deviation at log scale)
the mode
# NOT RUN { # with larger sigma, the distribution is more skewed # with mode further away from median = 1 getLognormMode(mu = log(1), sigma = c(log(1.2),log(2))) # }
Run the code above in your browser using DataLab