Learn R Programming

npsurv (version 0.5-0)

ap: Angina Pectoris Survival Data

Description

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.

Arguments

Format

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.

References

Lee, E. T. and Wang, J. W. (2003). Statistical Methods for Survival Data Analysis. Wiley.

See Also

npsurv.

Examples

Run this code
# NOT RUN {
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

# }

Run the code above in your browser using DataLab