A grid of bandwidth values is created and the local linear fit is estimated
using all the data points except for one point, which is used to make the
prediction. This procedure is repeated n
times, where n
is the
number of observations. Then, the bandwidth is selected as the one with the
smallest average error.
When the dimension of the predictor variable is large compared with the sample
size, local linear fitting meets the 'curse of dimensionality' problem. In
situations like that, the grid bandwidth values might be too small and cause
the function to fail. For these cases, we advice the user to directly use the
llqr
function of the package and specify a bandwidth in the function.