# fig4_1

## PURPOSE

Local Regression and Likelihood, Figure 4.1.

## SYNOPSIS

This is a script file.

## DESCRIPTION

     Local Regression and Likelihood, Figure 4.1.
     Author: Catherine Loader

     Local Likelihood (Poisson Regression).

## CROSS-REFERENCE INFORMATION

This function calls:

- lfband adds confidence bands around the plot of a locfit() fit.
- 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 4.1.
    0002 % Author: Catherine Loader
    0003 %
    0004 % Local Likelihood (Poisson Regression).
    0005
    0006 load mine;
    0007 fit = locfit(extrp,frac,'family','poisson','deg',1,'alpha',0.6);
    0008 figure('Name','fig4_1: Poisson Regression');
    0009 lfplot(fit);
    0010 lfband(fit);