Learn R Programming

lognorm (version 0.1.6)

getParmsLognormForMeanAndUpper: getParmsLognormForMeanAndUpper

Description

Calculates mu and sigma of lognormal from median and upper quantile.

Usage

getParmsLognormForMeanAndUpper(mean, quant, 
    sigmaFac = qnorm(0.99))

Arguments

mean

expected value at the original scale

quant

value at the upper quantile, i.e. practical maximum

sigmaFac

sigmaFac=2 is 95% sigmaFac=2.6 is 99% interval

Value

numeric matrix: columns mu and sigma parameter of the lognormal distribution.

Details

There are two valid solutions. This routine returns the one with lower sigma, i.e. the not so strongly skewed solution.