fig6_2.m 305 B

1234567891011
  1. % Local Regression and Likelihood, Figure 6.2.
  2. % Author: Catherine Loader
  3. %
  4. % Local smooth of CO2 dataset, main trend.
  5. load co2;
  6. fit = locfit(year+month/12,co2,'alpha',0.5,'deg',1);
  7. figure('Name','fig6_2: CO2 Dataset: Local smoothing, main trend' );
  8. lfplot(fit);
  9. xlabel('Date');
  10. ylabel('CO2')