raster.resid: raster.resid Measure standardized residuals from a linear regression between two rasters.
Description
This function builds a linear model for the relationship between two rasters, and returns the linear model
and a spatial raster of the residuals from that model.
Usage
raster.resid(x, y)
Arguments
x
A raster or RasterLayer object, or ENMTools model object containing a suitability raster.
y
Another raster or RasterLayer object, or ENMTools model object containing a suitability raster.
Value
results A list containing a raster of residuals from a linear regression between the two supplied rasters and the linear model itself.