# fig2_2

## PURPOSE

Local Regression and Likelihood, Figure 2.2.

## SYNOPSIS

This is a script file.

## DESCRIPTION

     Local Regression and Likelihood, Figure 2.2.

     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.2.
    0002 %
    0003 % Using different smoothing parameters.
    0004
    0005 load ethanol;
    0006 fit = locfit(E,NOx,'alpha',0.5);
    0007 figure('Name', 'figure2_2: Smoothing parameters' );
    0008 lfplot(fit);