Home > chronux_1_0 > locfit > Book > fig2_4.m

fig2_4

PURPOSE ^

Local Regression and Likelihood, Figure 3.1.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Local Regression and Likelihood, Figure 3.1.

 Bivariate Local Regression.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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;

Generated on Fri 09-Jun-2006 23:38:05 by m2html © 2003