nkreg {funfits} | R Documentation |
nkreg(data.x, data.y, bandwidth, n.points, grid)
data.x |
Vector or matrix of independent variables. |
data.y |
Vector of the dependent variable |
bandwidth |
Vector of bandwidths |
n.points |
Number of equally spaced points to evaluate a univariate density estimate. |
grid |
A vector or matrix of values to evaluate the estimate.The defautl is to use the data. |
A list where x is the points used for evaluation, y the density estimates at these points and bandwidths and h the vector of bandwidths. If more than one bandwidth is given then the estimates are arranged as columns in the matrix y.
nkden, nkden.cv, ksmooth
nkreg( auto.paint$thick, auto.paint$DOI, 5.0)-> look plot( auto.paint$thick, auto.paint$DOI) lines( look$x, look$y) plot( look$y, auto.paint$DOI- look$y, xlab="Predicted", ylab="Residuals")