Description Usage Arguments Details Value Author(s) See Also

Hazard and cumulative hazard functions for distributions which are built into flexsurv, and whose distribution functions are in base R.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ```
hexp(x, rate = 1, log = FALSE)
Hexp(x, rate = 1, log = FALSE)
hgamma(x, shape, rate = 1, log = FALSE)
Hgamma(x, shape, rate = 1, log = FALSE)
hlnorm(x, meanlog = 0, sdlog = 1, log = FALSE)
Hlnorm(x, meanlog = 0, sdlog = 1, log = FALSE)
hweibull(x, shape, scale = 1, log = FALSE)
Hweibull(x, shape, scale = 1, log = FALSE)
``` |

`x` |
Vector of quantiles |

`rate` |
Rate parameter (exponential and gamma) |

`log` |
Compute log hazard or log cumulative hazard |

`shape` |
Shape parameter (Weibull and gamma) |

`meanlog` |
Mean on the log scale (log normal) |

`sdlog` |
Standard deviation on the log scale (log normal) |

`scale` |
Scale parameter (Weibull) |

For the exponential and the Weibull these are available analytically, and so are programmed here in numerically stable and efficient forms.

For the gamma and log-normal, these are simply computed as minus the log of the survivor function (cumulative hazard) or the ratio of the density and survivor function (hazard), so are not expected to be robust to extreme values or quick to compute.

Hazard (functions beginning 'h') or cumulative hazard (functions beginning 'H').

Christopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk>

`dexp`

,`dweibull`

,`dgamma`

,`dlnorm`

,`dgompertz`

,`dgengamma`

,`dgenf`

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.