Code used in Hebert et al., submitted to Ecosphere
Recommended order to run the .R
files:
Survey Data Preprocessing.R
Covariate VIFs and Correlations.R
Environmental Raster Processing for Prediction.R
mgcv Model Fitting + Output.R
starve Model Fitting + Output.R
sdmTMB Model Fitting + Output.R
Figures 1, 2, 3, and 5 + Figure S2.R
The three model fitting scripts listed above each depend on the processed survey data from Survey Data Preprocessing.R
and the processed environmental raster data from Environmental Raster Processing for Prediction.R
. Most of Figures 1, 2, 3, and 5 + Figure S2.R
depends on the three fitted models.