# dheft: Heft: hazard estimation with flexible tails In polspline: Polynomial Spline Routines

## Description

Density (`dheft`), cumulative probability (`pheft`), hazard rate (`hheft`), quantiles (`qheft`), and random samples (`rheft`) from a `heft` object

## Usage

 ```1 2 3 4 5``` ```dheft(q, fit) hheft(q, fit) pheft(q, fit) qheft(p, fit) rheft(n, fit) ```

## Arguments

 `q` vector of quantiles. Missing values (`NA`s) are allowed. `p` vector of probabilities. Missing values (`NA`s) are allowed. `n` sample size. If `length(n)` is larger than 1, then `length(n)` random values are returned. `fit` `heft` object, typically obtained from `heft`.

## Details

Elements of `q` or `p` that are missing will cause the corresponding elements of the result to be missing.

## Value

Densities (`dheft`), hazard rates (`hheft`), probabilities (`pheft`), quantiles (`qheft`), or a random sample (`rheft`) from a `heft` object.

## Author(s)

Charles Kooperberg clk@fredhutch.org.

## References

Charles Kooperberg, Charles J. Stone and Young K. Truong (1995). Hazard regression. Journal of the American Statistical Association, 90, 78-94.

Charles J. Stone, Mark Hansen, Charles Kooperberg, and Young K. Truong. The use of polynomial splines and their tensor products in extended linear modeling (with discussion) (1997). Annals of Statistics, 25, 1371–1470.

`heft`, `plot.heft`, `summary.heft`.
 ```1 2 3 4 5 6``` ```fit <- heft(testhare[,1],testhare[,2]) dheft(0:10,fit) hheft(0:10,fit) pheft(0:10,fit) qheft((1:19)/20,fit) rheft(10,fit) ```