Description Usage Arguments Value
one-dimensional local polynomial smoother
1 2 3 4 5 6 7 8 9 10 |
x |
a vector of observed values of the predictor |
y |
a vector of observed values of the response |
h |
the bandwidth, either a numeric or NULL; if NULL, the automatically selected by five-fold CV |
newx |
a vector of new values of the predictor; set to |
degree |
the degree of local polynomials, nonnegative integer |
weight |
a vector of real numbers obtaining the weight for each observations; if NULL, then equal weight |
kernel |
a kernel from the package locpol, supported are 'epanechnikov', "rectangular", "triangular", "quartic", "triweight", "tricube", "cosine", "gauss", "logistic", "sigmoid" and "silverman" |
sorted |
indicator of whether the array x and newx are sorted in increasing order |
a list of the following elements
h |
the selected bandwidth or input bandwidth |
x |
the original input |
y |
the original input |
weight |
the original input |
kernel |
the original input |
degree |
the original input |
yhat |
the estimated response at |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.