Description Usage Arguments Note
Calculate estimate of a function at a point and its variance given a
bandwidth using local polynomial regression of order order
.
1 
Y, X 
Outcome variable and regressor 
h 
Bandwidth 
K 
Kernel function 
order 
Order of local regression 1 for linear, 2 for quadratic, etc. 
se.method 
Vector with methods for estimating standard error of
estimate. If

sigma2 
Optionally, supply estimates of σ^{2}_{i} (for

J 
Number of nearest neighbors, if "nn" is specified in

Nearest neighbor method assumes data are sorted so that
X[i] <= X[i+1]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.