ap {npsurv} | R Documentation |
Contains the survival times in years from the time of diagnosis for 2418 male patients with angina pectoris. Some patients are lost to follow-up, hence giving right-censored observations. Each integer-valued survival time is treated as being censored within a one-year interval.
A data frame with 30 observations and 3 variables:
L
: left-end point of an interval-censored retraction time;
R
: right-end point of an interval-censored retraction time;
count
: number of patients in the interval.
Lee and Wang (2003), page 92.
Lee, E. T. and Wang, J. W. (2003). Statistical Methods for Survival Data Analysis. Wiley.
data(ap)
r = Uhaz(ap, deg=2) # smooth U-shaped hazard
plot(r$h, fn="h") # hazard
plot(r$h, fn="d") # density
# NPMLE and shape-restricted estimation
plot(npsurv(ap), fn="s") # survival under no shape restriction
plot(r$h, fn="s", add=TRUE) # survival with smooth U-shaped hazard