Description Usage Arguments Details Value Author(s) References
Estimates global bandwidth kernel from right-censored data using the Epanechnikov kernel described in Silverman BW (1986).
1 | kernden(times, status, estgrid, bandwidth)
|
times |
A vector of survival times. It does not need to be sorted. |
status |
A vector indicating censoring: 0 - censored (alive), 1 - uncensored (dead). If status is missing, all the observations are assumed uncensored. |
estgrid |
A vector of time points at which the estimation will be made. |
bandwidth |
Bandwidth used to determine the degree of smoothing. Larger values of bandwidth will result in smoother of mean estimates. It is suggested to start with a value of approximately 20% of the range of the survival times. |
Calculate global bandwidth kernel estimates of density function for survival times
Returns an object containing the time points of estimations (estgrid) and corresponding density estimates (denest).
R. Herrick and Dan Serachitopol
Hess, K.R. and Zhong, M. Density Function Estimation for Possibly Right-Censored Data Using Kernel Functions. Submitted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.