I'm trying to use a nonparametric regression on some observations to make predictions for other observations, but the "predict" command doesn't make give a value for observations not included in the initial regression. Using the below example, you can see that the prediction ("preval") is left blank for the first observation, because the first observation wasn't included in the regression. Is there some way I can make a prediction for these observations?
Code:
clear sysuse auto npregress kernel price length weight if _n!=1 predict preval list in 1/3
Comment