Learn R Programming

eha (version 1.2-18)

Lognormal: The Lognormal Distribution

Description

Hazard function and cumulative hazard function for the Lognormal distribution with parameters shape and scale.

Usage

hlnorm(x, meanlog = 0, sdlog = 1,
shape = 1 / sdlog, scale = exp(meanlog), log = FALSE)
Hlnorm(x, meanlog = 0, sdlog = 1,
shape = 1 / sdlog, scale = exp(meanlog), log.p = FALSE)

Arguments

x
vector of quantiles.
meanlog, sdlog
Mean and standard deviation in the distribution of the logarithm of a lognormal random variable.
shape, scale
shape and scale parameters, both defaulting to 1.
log, log.p
logical; if TRUE, probabilities p are given as log(p).

Value

  • hlnorm gives the hazard function, and Hlnorm gives the cumulative hazard function.

    Invalid arguments will result in return value NaN, with a warning.

Details

This is a complement to the Lognormal distribution, see Lognormal for further details.