smoothHaz {biostat3}R Documentation

Simple implementation for kernel density smoothing of the Nelson-Aalen estimator.

Description

Simple implementation for kernel density smoothing of the Nelson-Aalen estimator. Prefer muhaz for right censored data and bshazard for left truncated and right censored data.

Usage

smoothHaz(object, n.grid = 300, kernel = "epanechnikov",
          from = NULL, to = NULL, min.n.risk = 1, ...)
## S3 method for class 'smoothHaz'
plot(x, xlab = "Time", ylab = "Hazard", type = "l", ...)

Arguments

object

survfit object

n.grid

number of grid points; passed to density

kernel

kernel used; passed to density

from

left boundary; passed to density

to

right boundary; passed to density

min.n.risk

minimum number at risk

x

object of class smoothHaz

xlab

graphics argument

ylab

graphics argument

type

graphics argument

...

Other arguments


[Package biostat3 version 0.1.9 Index]