Uniform hazard rate function

Share:

Description

Computes the hazard rate function of the uniform distribution

Usage

1
huniform(x, a = 1, b = 2)

Arguments

x

scale or vector of values at which the hazard rate function needs to be computed, values must be between a and b

a

the value of a parameter, must be positive

b

the value of b parameter, must be greater than a

Value

An object of the same length as x, giving the hazard rate function values computed at x

Note

If incorrect values are input for x or the model parameters then NaNs will be returned as the output.

Author(s)

Saralees Nadarajah

References

S. Nadarajah, S. A. A. Bakar, Tabulations of survival models for actuarial use, submitted

Examples

1
2
x=runif(10,min=1,max=2)
y=huniform(x)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.