fig1_2

PURPOSE ^

Local Regression and Likelihood, Figure 1.2.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Local Regression and Likelihood, Figure 1.2.

 Spencer's mortality data, 15- and 21-point rules.
 Doesn't use locfit!

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Local Regression and Likelihood, Figure 1.2.
0002 %
0003 % Spencer's mortality data, 15- and 21-point rules.
0004 % Doesn't use locfit!
0005 
0006 load spencer;
0007 
0008 figure('Name','fig1_2a: Spencer mortality data');
0009 plot(age,mortality,'o');
0010 title('15-point rule');
0011 xlabel('Age (Years)');
0012 ylabel('Mortality Rate');
0013 hold on;
0014 plot(age,spence15(mortality));
0015 hold off;
0016 figure('Name','fig1_2b: Spencer mortality data');
0017 plot(age,mortality,'o');
0018 xlabel('Age (Years)');
0019 ylabel('Mortality Rate');
0020 title('21-point rule');
0021 hold on;
0022 plot(age,spence21(mortality));
0023 hold off;

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