logLikuh: Computes the Log-likelihood Value of a U-shaped Hazard...

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

View source: R/Uhaz.R

Description

logLikuh returns the log-likelihood value of a U-shaped hazard function, given a data set.

Usage

1

Arguments

h

an object of class uh.

data

numeric vector or matrix for exact or interval-censored observations, or an object of class icendata.

Value

Log-likelihood value evaluated at h, given data.

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
7
8
9
data(ap)
(h0 = uh(.2, NULL, NULL, NULL, NULL, 15, 1))   # Uniform hazard
plot(h0, ylim=c(0,.3))
logLikuh(h0, ap)

r = Uhaz(ap, deg=2)
r$ll
logLikuh(r$h, ap)
plot(r$h, add=TRUE, col="red3")

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

Related to logLikuh in npsurv...