plot.khazard: Plot of kernel hazard estimate from an object of class...

Description Usage Arguments See Also Examples

Description

Plot of kernel hazard estimate from an object of class khazard

Usage

1
2
## 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

khazard

Examples

1
2
3
4
5
6
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)

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'. 

kernhaz documentation built on May 1, 2019, 9:19 p.m.