Text this: Generalized additive models : an introduction with R / Simon N. Wood.