raster.resid: raster.resid Measure standardized residuals from a linear...

View source: R/raster.resid.R

raster.residR 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]])

danlwarren/ENMTools documentation built on April 23, 2024, 3:12 p.m.