- model
a model object of class implemented in mod2obspred
. If this argument is provided, 'obs' and 'pred' will be extracted with that function. Alternatively, you can input the 'obs' and 'pred' arguments instead of 'model'.
- obs
alternatively to 'model' and together with 'pred', a numeric vector of observed values of the response variable. Alternatively (and if 'pred' is a 'SpatRaster'), a two-column matrix or data frame containing, respectively, the x (longitude) and y (latitude) coordinates of presence points, in which case the 'obs' vector of presences and absences will be extracted with ptsrast2obspred
. This argument is ignored if 'model' is provided.
- pred
alternatively to 'model' and together with 'obs', a vector with the corresponding predicted values, of the same length and in the same order as 'obs'. Alternatively (and if 'obs' is a set of point coordinates), a 'SpatRaster' map of the predicted values for the entire evaluation region, in which case the 'pred' vector will be extracted with ptsrast2obspred
. This argument is ignored if 'model' is provided.
- family
a character vector (i.e. in quotes) of length 1 specifying the family of the model that generated the 'pred' values. This argument is ignored if model
is provided and is of a class for which family
provides a result; otherwise (i.e. if 'obs' and 'pred' are provided rather than a model object), family can be specified by the user, or (if left NULL) will be guessed (with a message) given the values of the response variable.
- adjust
logical, whether or not to adjust the D-squared value for the number of observations and parameters in the model (see Details). The default is FALSE
; TRUE
requires either providing the model
object of class GLM, or specifying the number of parameters in the model that produced the pred
values.
- npar
integer value indicating the number of parameters in the model. This argument is ignored and taken from model
if this argument is provided and of class GLM, or if adjust = FALSE
.
- na.rm
Logical value indicating whether missing values should be ignored in computations. Defaults to TRUE.
- rm.dup
If TRUE
and if 'pred' is a SpatRaster and if there are repeated points within the same pixel, a maximum of one point per pixel is used to compute the presences. See examples in ptsrast2obspred
. The default is FALSE.
- pbg
logical value to pass to inputMunch
indicating whether to use presence/background (rather than presence/absence) data. Default FALSE.
- dismo.version
Logical value indicating whether the deviance should be computed with code from the dismo::calc.deviance() function. The default is FALSE, for back-compatibility.
- verbosity
integer specifying the amount of messages to display. Defaults to the maximum implemented; lower numbers (down to 0) decrease the number of messages.