Bnk_func: Generate biquadratic kernel weights for a univariate variable

Description Usage Arguments Value Note References Examples

Description

This is the biquadratic kernel function, that weights observations by their distances to the target observation.

Usage

1
Bnk_func(x0k, Xk, bw.bnk)

Arguments

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.

Value

This function returns a list of kernel weights with the same length of input Xk.

Note

This function is widely used for generating kernel weights for nonparametrically estimating conditional survival functions. See Section 2.3 of \insertCitewang2009locallyQTOCen.

References

\insertRef

wang2009locallyQTOCen

Examples

1
2
 
Bnk_func(x0k=0, Xk=c(-5:5), bw.bnk=10)

QTOCen documentation built on June 4, 2019, 5:03 p.m.

Related to Bnk_func in QTOCen...