hazuh: Distributional Functions given a U-shaped Hazard Function

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/Uhaz.R

Description

Given an object of class uh:

Usage

1
2
3
4
hazuh(t, h)
chazuh(t, h)
survuh(t, h)
denuh(t, h)

Arguments

t

time points at which the function is to be evaluated.

h

an object of class uh.

Details

hazuh computes the hazard values;

chazuh computes the cumulative hazard values;

survuh computes the survival function values;

denuh computes the density function values.

Value

A numeric vector of the function values.

Author(s)

Yong Wang <yongwang@auckland.ac.nz>

References

Wang, Y. and Fani, S. (2018). Nonparametric maximum likelihood computation of a U-shaped hazard function. Statistics and Computing, 28, 187-200.

See Also

Uhaz, icendata, plot.uh

Examples

1
2
3
4
5
6
data(ap)
h = Uhaz(icendata(ap), deg=2)$h
hazuh(0:15, h)     # hazard
chazuh(0:15, h)    # cumulative hazard
survuh(0:15, h)    # survival probability
denuh(0:15, h)     # density

npsurv documentation built on Oct. 23, 2020, 5:43 p.m.

Related to hazuh in npsurv...