fig11_1

PURPOSE ^

Local Regression and Likelihood, Figure 11.1

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Local Regression and Likelihood, Figure 11.1

 Variable degree fit, uses module 'vord'. Note there is
 no `lower' degree here; it defaults to 0.

 Author: Catherine Loader

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Local Regression and Likelihood, Figure 11.1
0002 %
0003 % Variable degree fit, uses module 'vord'. Note there is
0004 % no `lower' degree here; it defaults to 0.
0005 %
0006 % Author: Catherine Loader
0007 
0008 load ethanol;
0009 
0010 figure('Name','fig11_1a: Variable degree fit');
0011 fit = locfit(E,NOx,'deg',3,'nn',0.3,'module','vord');
0012 lfplot(fit);
0013 
0014 figure('Name','fig11_1b: Variable degree fit');
0015 x = fit.fit_points.evaluation_points';
0016 z = predict(fit,'fitp','what','deg');
0017 plot(x,z,'o');
0018 xlabel('Fitting Point');
0019 ylabel('Degree');

Generated on Fri 12-Aug-2011 11:36:15 by m2html © 2005