Classifies the hazard rate as increasing, decreasing, bathtub-shaped or upside-down bathtub-shaped, and returns the mode of the density.
Arguments
- a
Shape parameter (beta generator).
- b
Shape parameter governing the tail.
- c
Shape parameter (baseline).
- k
Scale parameter (baseline).
- n_grid
Number of grid points between the lower and upper evaluation quantiles.
- range_p
Two probabilities bounding the evaluation range.
- x
A `"bd_shape"` object.
- ...
Ignored.
Value
A list of class `"bd_shape"` with the classification, the grid of times, the hazard, Glaser's \(\eta(t) = -f'(t)/f(t)\), and the mode.
Details
Glaser's criterion works through \(\eta(t) = -f'(t)/f(t)\): monotone increasing \(\eta\) gives an increasing hazard, monotone decreasing gives a decreasing hazard, and a single interior turning point gives a bathtub or upside-down bathtub. Here \(\eta\) is formed analytically from the log-density and evaluated on a grid, and the hazard itself is checked alongside it, so the two must agree before a shape is reported.