Local Regression and Likelihood, Figure 2.3. Using different smoothing parameters.
0001 % Local Regression and Likelihood, Figure 2.3. 0002 % 0003 % Using different smoothing parameters. 0004 0005 load ethanol; 0006 0007 alp = [0.2 0.4 0.6 0.8]; 0008 f=['a','b','c','d']; 0009 for (i=1:4) 0010 figure('Name', sprintf( 'figure2_3%c: Changing smoothing parameters', f(i) ) ); 0011 fit = locfit(E,NOx,'alpha',alp(i)); 0012 lfplot(fit); 0013 title(strcat('a = ',num2str(alp(i)))); 0014 end;