Bnk_func {QTOCen} | R Documentation |
This is the biquadratic kernel function, that weights observations by their distances to the target observation.
Bnk_func(x0k, Xk, bw.bnk)
x0k |
Numeric scalar. One univariate covariate value of interest from one observation. |
Xk |
Numerical vector. The vector of the same covariate from observations |
bw.bnk |
The bandwith scalar parameter. |
This function returns a list of kernel weights with the same length of input Xk
.
This function is widely used for generating kernel weights for nonparametrically estimating conditional survival functions. See Section 2.3 of (Wang and Wang 2009).
Wang HJ, Wang L (2009). “Locally weighted censored quantile regression.” Journal of the American Statistical Association, 104(487), 1117–1128.
Bnk_func(x0k=0, Xk=c(-5:5), bw.bnk=10)