Description Usage Arguments Details Value Warning Author(s) References Examples
To fit a non-parametric relation between a pair of random variables by using kernel method.
1 2 |
x |
input of explanatory values. |
y |
input of response values. |
h |
the smoothing bandwidth. See 'Details' of the default bandwidth. |
kernel |
a character string which determines the smoothing kernel function. This must be one of |
plot |
a logical indicating whether to plot the graph with fitted line. |
Kernel regression is a non-parametric technique to find a non-linear relation between a pair of random variables X and Y. It is also called Nadaraya-Watson kernel regression which estimates the conditional expectation of a random variable, i.e., E(Y|X). The default smoothing bandwidth is the optimal plug-in bandwidth in Fan and Gijbels (1996), i.e., h = c*n^(-1/5), where c is a constant and replaced by IQR in this function. Note that it provides the initial bandwidth and may not be the best one. Missing values have been removed.
results |
a matrix including the original data of explanatory variable |
bw |
the smoothing bandwidth used. |
The smoothing bandwidth is always a critical issue in non-parametric statistics. The default smoothing bandwidth suggested by Fan and Gijbels (1996) may not perform well in some cases. You are recommended to provide one obtained by other methods.
Debin Qiu <debinqiu@uga.edu>
Fan, I. Gijbels (1996). Local Polynomial Modeling and its Applications. Chapman & Hall, London.
Li, Q., Racine, J. (2007). Nonparametric Econometrics: Theory and Practice. Princeton University Press. ISBN 0-691-12161-3.
Nadaraya, E. A. (1964). On Estimating Regression. Theory of Probability and its Applications 9(1): 141-2.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.