fig4_2.m 373 B

1234567891011
  1. % Local Regression and Likelihood, Figure 4.2.
  2. % Author: Catherine Loader
  3. %
  4. % Local Likelihood (Logistic Regression), for the
  5. % Henderson-Shepherd Mortality Data.
  6. load morths;
  7. fit = locfit(age,deaths,'weights',n,'family','binomial','alpha',0.5);
  8. figure('Name','fig4_2: Logistic Regression for the Henderson-Shepherd Mortality Data.');
  9. lfplot(fit);
  10. lfband(fit);