October 2017
Beginner to intermediate
572 pages
26h 1m
English
The vis.gam function is used to produce perspective or contour plot views of the gam model predictions. It is helpful to observe how response variables interact with two predictor variables. The following is an example of a contour plot on the Boston dataset:
> fit2=gam(medv~crim+zn+crim:zn, data=Boston) > vis.gam(fit2)

Read now
Unlock full access