hazard.weibull_dist: Hazard function for a Weibull distribution.

View source: R/weibull_dist.R

hazard.weibull_distR Documentation

Hazard function for a Weibull distribution.

Description

Returns a function that evaluates the Weibull hazard rate h(t) = (shape/scale)(t/scale)^{shape-1} for t > 0.

Usage

## S3 method for class 'weibull_dist'
hazard(x, ...)

Arguments

x

A weibull_dist object.

...

Additional arguments (not used).

Value

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

Examples

x <- weibull_dist(shape = 2, scale = 3)
h <- hazard(x)
h(1)
h(3)

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.