powered by
Estimates the error variance \(\sigma^2\) nonparametrically in the model $$Y_i = m(x_i) + E_i,$$ where \(E_i \sim (0,\sigma^2)\), i.i.d.
Computes leave-one-out residuals (local linear approximation followed by reweighting) and their variance.
varNPreg(x, y)
A list with components
numeric; residuals at x[] of length n.
x[]
n
explained variance of the true curve
estimation of residual variance, \(\hat\sigma^2\).
abscissae values, ordered increasingly.
observations at y[i] at x[i].
y[i]
x[i]
Martin Maechler
lokerns, glkerns.
lokerns
glkerns
x <- sort(runif(100)) y <- sin(pi*x) + rnorm(100)/10 str(ve <- varNPreg(x,y))
Run the code above in your browser using DataLab