This page contains links for material from the lectures

Simon Wood has made two R packages to be used with his text

mgcv

gamair

Go to R-project and choose one of the mirror sites.  On this go to packages and find the two packages.

Sept 8, 2014 : R script LinReg1.R

Q R decomposition

QR-1.R  a simple example using the R function qr and related functions

September 8 or 10, 2014 :  hubble data and simple data frame  LinReg1.R

QR-2.R further QR details programmed in an inefficient manner.

Sept 24, 2014  MASS-ch8-7.R

weightloss-nls.R

Sept 24, 2014  a1-2014.pdf  Sept 30, Rephrased question 1 as in one part we need vectors of the same norm to follow Wood’s discussion of Householder matrices.

 

Nonparametric regression Chapters 3 and 4

Splines

Wood-spline.R  cubic splines ; we see this is just linear regression with a particular basis

B-spline1.R  B-splines

Wood also gives p-splines (truncated and shifted pure cubics)

Smoothing splines and penalized regression

Wood-Ch3.R

Wood-Ch3.R example of smoothing spline using the function rk in Wood Chapter 3.2

gam fitting example Cairo temperature  Cairo.R

loess and lowess example using the Cairo data  cairo-loess.R

Nov 24, 2014 :  SomeKernelSmoothNotes.pdf

and some pages from Ruppert et al 2013 Ruppert-Wand-Carroll-KernelSmoothing.pdf