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 |
|
n.grid |
number of grid points; passed to |
kernel |
kernel used; passed to |
from |
left boundary; passed to |
to |
right boundary; passed to |
min.n.risk |
minimum number at risk |
x |
object of class |
xlab |
graphics argument |
ylab |
graphics argument |
type |
graphics argument |
... |
Other arguments |
[Package biostat3 version 0.1.9 Index]