


Local Regression and Likelihood, Figure 3.1. Bivariate Local Regression.


0001 % Local Regression and Likelihood, Figure 3.1. 0002 % 0003 % Bivariate Local Regression. 0004 0005 load ethanol; 0006 0007 alp = [0.25 0.3 0.49 0.59]; 0008 lab = {'Local Constant' 'Local Linear' 'Local Quadratic' 'Local Cubic'}; 0009 for i = 1:4 0010 figure(i) 0011 fit = locfit(E,NOx,'deg',i-1,'alpha',alp(i)); 0012 lfplot(fit); 0013 title(lab(i)); 0014 end;