---
title: Generalized Additive Models
author:  |
  <span class="noem">Michael Clark</span> 
  https://m-clark.github.io/
  <img class='arc' src="img/signature-acronym.png" alt="University of Michigan: CSCAR">
  <img class='cscar' src="img/ARC-acronym-signature.png" alt="University of Michigan: Advanced Research Computing"> 
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
output:
  bookdown::gitbook
always_allow_html: yes
documentclass: book
# bibliography: refs.bib
font-import: http://fonts.googleapis.com/css?family=Roboto|Open+Sans|Stalemate|Alex+Brush
biblio-style: apalike
link-citations: yes
description: "An introduction to generalized additive models (GAMs) is provided, with an emphasis on generalization from familiar linear models. It makes extensive use of the mgcv package in R.  Discussion includes common approaches, standard extensions, and relations to other techniques.  More technical modeling details are described and demonstrated as well."
cover-image: 'img/nineteeneightyR.png'
url: 'https\://m-clark.github.io/generalized-additive-models/'  # evidently the \: is required or you'll get text in the title/toc area
favicon: 'img/R.ico'
github-repo:  'm-clark/generalized-additive-models/'
bibliography: refs.bib
nocite: | 
  @wood_generalized_2006,  @wood_generalized_2017, @venables_modern_2002, @rasmussen_gaussian_2006, @hardin_generalized_2012, 
  @rigby_generalized_2005, @hastie_generalized_1990, @fox_multiple_2000, @fox_nonparametric_2000,
  @breiman_statistical_2001, @bybee_pisa_2009, @hastie_elements_2009, @ruppert_semiparametric_2003,
  @wasserman_all_2006, @fahrmeir2013regression, @friedman2000additive, @shalizi2016
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = T, message=F, warning=F, comment=NA, autodep=F, 
                      eval=T, cache.rebuild=F, cache=T, R.options=list(width=120), 
                      out.width = '40%', fig.asp = .5,
                      fig.width=8, fig.align = 'center', dev.args=list(bg = 'transparent'), dev='svglite')
```

```{r loadpacks, include=FALSE, cache=FALSE, results='hide'}
library(magrittr); library(pander); library(tidyverse); library(broom); library(mgcv); 
library(htmltools); library(lazerhawk); library(visibly); library(visreg); library(plotly)
mapply(function(o, v) panderOptions(o, v),
       c('keep.trailing.zeros', 'round', 'table.split.table', 'table.split.cells'), 
       c(TRUE, 2, Inf, Inf))
```

#

```{r cover_image, fig.align='center', out.width=200, echo=FALSE}
knitr::include_graphics('img/198R.png', dpi = NA)
```


```{r ccimg, fig.align='center',  out.width=0, fig.show='hide', echo=FALSE}
knitr::include_graphics('img/mc_logo.png', dpi = NA)
```



