plot.khazard {kernhaz} | R Documentation |
Plot of kernel hazard estimate from an object of class khazard
Description
Plot of kernel hazard estimate from an object of class khazard
Usage
## S3 method for class 'khazard'
plot(x, h = NULL, ylim, type, xlab, ylab, main, ...)
Arguments
x |
Object of class khazard |
h |
bandwidth for which hazard function estimate will be plot if x$h is vector |
ylim |
Limits for the y axis. |
type |
type argument for plot. |
xlab |
Label for the x axis. |
ylab |
Label for the y axis. |
main |
Title of plot. |
... |
Additional arguments. |
See Also
Examples
library(survival)
fit<-khazard(times = lung$time,delta = lung$status-1)
plot(fit)
fit<-khazard(times = lung$time,delta = lung$status-1,h=c(100,150,200,250), value="both")
plot(fit,h=200)
[Package kernhaz version 0.1.0 Index]