Learn R Programming

lognorm (version 0.1.6)

getParmsLognormForMedianAndUpper: getParmsLognormForMedianAndUpper

Description

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

Usage

getParmsLognormForMedianAndUpper(median, 
    quant, sigmaFac = qnorm(0.99))

Arguments

median

geometric mu (median at the original exponential scale)

quant

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

sigmaFac

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

Value

named numeric vector: mu and sigma parameter of the lognormal distribution.