Probability intervals with GAMs
A neat trick with GAMs (generalized additive models) fit using the
mgcv package is that you can use simulation to get Bayesian credible
intervals. This is handy because it means you can easily calculate
probabilities fo…