- data
Data frame with a response variable and a set of predictors. Default: NULL
- dependent.variable.name
Character string with the name of the response variable. Must be in the column names of data. Default: NULL
- predictor.variable.names
Character vector with the names of the predictive variables. Every element of this vector must be in the column names of data. Default: NULL
- distance.matrix
Squared matrix with the distances among the records in data. The number of rows of distance.matrix and data must be the same. If not provided, the computation of the Moran's I of the residuals is omitted. Default: NULL
- distance.thresholds
Numeric vector with neighborhood distances. All distances in the distance matrix below each value in dustance.thresholds are set to 0 for the computation of Moran's I. If NULL, it defaults to seq(0, max(distance.matrix), length.out = 4). Default: NULL
- ranger.arguments
List with ranger arguments. See rf or rf_repeat for further details.
- spatial.predictors.df
Data frame of spatial predictors.
- ranking.method
Character, method used by to rank spatial predictors. The method "effect" ranks spatial predictors according how much each predictor reduces Moran's I of the model residuals, while the method "moran" ranks them by their own Moran's I. Default: "moran".
- reference.moran.i
Moran's I of the residuals of the model without spatial predictors. Default: 1
- verbose
Logical, ff TRUE, messages and plots generated during the execution of the function are displayed, Default: TRUE
- n.cores
Integer, number of cores to use for parallel execution. Creates a socket cluster with parallel::makeCluster(), runs operations in parallel with foreach and %dopar%, and stops the cluster with parallel::clusterStop() when the job is done. Default: parallel::detectCores() - 1
- cluster
A cluster definition generated with parallel::makeCluster(). If provided, overrides n.cores. When cluster = NULL (default value), and model is provided, the cluster in model, if any, is used instead. If this cluster is NULL, then the function uses n.cores instead. The function does not stop a provided cluster, so it should be stopped with parallel::stopCluster() afterwards. The cluster definition is stored in the output list under the name "cluster" so it can be passed to other functions via the model argument, or using the %>% pipe. Default: NULL