raster.resid {ENMTools}R Documentation

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.

Examples

data(euro.worldclim)
raster.resid(euro.worldclim[[1]], euro.worldclim[[2]])

[Package ENMTools version 1.1.2 Index]