adjusted.actuals {spind}R Documentation

Adjusted actual values

Description

Adjusts actual presence/absence data based on the autocorrelation in the predictions of a model. The function will optionally plot results of model predictions, un-modified actual presence/absence, and adjusted values.

Usage

adjusted.actuals(data, coord, plot.maps = FALSE, color.maps = FALSE)

Arguments

data

a dataframe or matrix containing actual presence/absence (binary, 0 or 1) values in 1st column and predicted values (numeric between 0 and 1) in 2nd column.

coord

a matrix of two columns of the same length providing integer, consecutively numbered coordinates for each occurrence and prediction in data.

plot.maps

A logical indicating whether maps should be plotted. Default is FALSE.

color.maps

A logical value. If TRUE, produces colorful maps. If FALSE, produces grayscale maps. Default is grayscale. NOW DEPRECATED, color maps will not be produced in future versions.

Value

A vector of adjusted actual values.

Author(s)

Gudrun Carl

Examples

data(hook)
data <- hook[ ,1:2]
coord <- hook[ ,3:4]
aa <- adjusted.actuals(data, coord, plot.maps = TRUE)


[Package spind version 2.2.1 Index]