Learn R Programming

lognorm (version 0.1.6)

getLognormMode: getLognormMode

Description

get the mode of a log-normal distribution

Usage

getLognormMode(mu, sigma)

Arguments

mu

center parameter (mean at log scale, log(median))

sigma

scale parameter (standard deviation at log scale)

Value

the mode

Examples

Run this code
# 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