Home > chronux > locfit > Book > fig2_3.m

fig2_3

PURPOSE ^

Local Regression and Likelihood, Figure 2.3.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Local Regression and Likelihood, Figure 2.3.

 Using different smoothing parameters.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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;

Generated on Fri 28-Sep-2012 12:34:30 by m2html © 2005