# 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:

- lfplot Plot (for one or two dimensions) a locfit() fit.
- locfit Smoothing noisy data using Local Regression and Likelihood.

This function is called by:

- runbook

## 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;