Learn R Programming

algebraic.dist (version 0.9.1)

hazard.lognormal: Hazard function for a log-normal distribution.

Description

Returns a function that evaluates the log-normal hazard rate \(h(t) = f(t) / S(t)\) for \(t > 0\).

Usage

# S3 method for lognormal
hazard(x, ...)

Value

A function function(t, log = FALSE) returning the hazard (or log-hazard) at t.

Arguments

x

A lognormal object.

...

Additional arguments (not used).

Examples

Run this code
x <- lognormal(0, 1)
h <- hazard(x)
h(1)
h(2)

Run the code above in your browser using DataLab