# fig4_2

## PURPOSE

Local Regression and Likelihood, Figure 4.2.

## SYNOPSIS

This is a script file.

## DESCRIPTION

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

     Local Likelihood (Logistic Regression), for the
     Henderson-Shepherd Mortality Data.

## 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.2.
    0002 % Author: Catherine Loader
    0003 %
    0004 % Local Likelihood (Logistic Regression), for the
    0005 % Henderson-Shepherd Mortality Data.
    0006
    0007 load morths;
    0008 fit = locfit(age,deaths,'weights',n,'family','binomial','alpha',0.5);
    0009 figure('Name','fig4_2: Logistic Regression for the Henderson-Shepherd Mortality Data.');
    0010 lfplot(fit);
    0011 lfband(fit);