Today at Davis R Users’ Group, Rosemary Hartman took us through her work in progress fitting general additive models to organism presence/absence data. Below is her presentation and script. You can get the original script and data here
Also, check the comments below for some discussion of other options for this type of analysis, such as boosted regression trees.
## GAMs using mgcv and amphibian presence/absence dataset ## code and data by Rosemary Hartman (rosehartman at gmail dot com) ## First, load the mgcv package (Simon Wood) library(mgcv) ## Now, attach your data set (or my data set) fishlakes <-read.
Read More…