Learn R Programming

muhaz (version 1.2.6.4)

kphaz.plot: kphaz.plot

Description

Plots a Kaplan-Meier type hazard estimate.

Usage

kphaz.plot(fit, ...)

Arguments

fit

A list representing the results of a call to "kphaz.fit".

...

Any legal argument for the plot function.

Side Effects

A plot with multiple hazard curves. One for each unique strata with 1 or more point.

See Also

kphaz.fit

Examples

Run this code
# NOT RUN {
# Use "kphaz.fit" to generate a hazard estimate
data(cancer, package="survival")
attach(ovarian)
kpfit <- kphaz.fit(futime, fustat)
# Use "kphaz.plot" to plot the estimate
kphaz.plot(kpfit)
# }

Run the code above in your browser using DataLab