Skip to contents

Method for obtaining the hazard function of a dfr_dist object.

Usage

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

Arguments

x

The object to obtain the hazard function of.

...

Additional arguments to pass into the rate function.

Value

A function that computes the hazard function of the distribution. It accepts t, the time at which to compute the hazard function, and par, the parameters of the distribution. If par is NULL, then the parameters of the dfr_dist object x are used. It also accepts a log argument that determines whether to compute the log of the hazard function. Finally, it passes any additional arguments to the rate function of the dfr_dist object x.