h_pluginBw: Quantile-based bandwidth selectors based on the plug-in...

Description Usage Arguments Value References Examples

View source: R/h_pluginBw.R

Description

Quantile-based bandwidth selector for univariate expectile regression based on the plug-in bandwidth selector proposed by Fan and Gijbels (1996).

Usage

1
h_pluginBw(X, Y, p = 1, kernel = gaussK, omega)

Arguments

X

The covariate data values.

Y

The response data values.

p

The order of the local polynomial estimator. In default setting, p=1.

kernel

The kernel used to perform the estimation. In default setting, kernel=gaussK. See details in Kernels.

omega

Numeric vector of level between 0 and 1 where 0.5 corresponds to the mean.

Value

h_pluginBw provides the quantile-based bandwidth based on the plugin bandwidth selector for mean regression proposed by Fan and Gijbels (1996) as discussed in Adam and Gijbels (2021a).

References

Fan, J. and Gijbels, I. (1996). Local Polynomial Modelling and Its Applications. Number 66 in Monographs on statistics and applied probability series. Chapman and Hall, London.

Adam, C. and Gijbels, I. (2021a). Local polynomial expectile regression. Annals of the Institute of Statistical Mathematics doi:10.1007/s10463-021-00799-y.

Examples

1
2
3
4
5
6
7
library(locpol)
data(mcycle)
y=mcycle$accel
x=mcycle$times

h=h_pluginBw(X=x,Y=y,p=1,kernel=gaussK,omega=0.1)
#h=0.8602156

locpolExpectile documentation built on Aug. 3, 2021, 5:07 p.m.