LL.fit {sharpData} | R Documentation |
This computes the local linear regression estimator at a few gridpoints. For a large number of gridpoints, it is not efficient.
LL.fit(x, y, xgrid, h, kernel)
x |
numeric explanatory vector |
y |
numeric response vector |
xgrid |
numeric vector |
h |
numeric bandwidth |
kernel |
character constant |
a vector of predictor values
W.J. Braun
Wand and Jones, 1996, Kernel Smoothing, Chapman and Hall.
x <- sort(runif(100)) y <- x + sin(x) + rnorm(100)*.1 LL.fit(x,y,c(.3, .5, .7),h=.5)