An introduction to data analysis with the generalized additive model