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
|
plot.maps |
A logical indicating whether maps should be plotted. Default is FALSE. |
color.maps |
A logical value. If |
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)