Learn R Programming

kernhaz (version 0.1.0)

plot.khazard: 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 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

khazard

Examples

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

Run the code above in your browser using DataLab