CRAN/E | spatialRF

spatialRF

Easy Spatial Modeling with Random Forest

Installation

About

Automatic generation and selection of spatial predictors for spatial regression with Random Forest. Spatial predictors are surrogates of variables driving the spatial structure of a response variable. The package offers two methods to generate spatial predictors from a distance matrix among training cases: 1) Moran's Eigenvector Maps (MEMs; Dray, Legendre, and Peres-Neto 2006 doi:10.1016/j.ecolmodel.2006.02.015): computed as the eigenvectors of a weighted matrix of distances; 2) RFsp (Hengl et al. doi:10.7717/peerj.5518): columns of the distance matrix used as spatial predictors. Spatial predictors help minimize the spatial autocorrelation of the model residuals and facilitate an honest assessment of the importance scores of the non-spatial predictors. Additionally, functions to reduce multicollinearity, identify relevant variable interactions, tune random forest hyperparameters, assess model transferability via spatial cross-validation, and explore model results via partial dependence curves and interaction surfaces are included in the package. The modelling functions are built around the highly efficient 'ranger' package (Wright and Ziegler 2017 doi:10.18637/jss.v077.i01).

Citation spatialRF citation info
blasbenito.github.io/spatialRF/
Bug report File report

Key Metrics

Version 1.1.4
R ≥ 2.10
Published 2022-08-19 626 days ago
Needs compilation? no
License GPL-3
CRAN checks spatialRF results
Language en-US

Downloads

Yesterday 4 0%
Last 7 days 61 -39%
Last 30 days 248 -39%
Last 90 days 879 -13%
Last 365 days 3.533 -8%

Maintainer

Maintainer

Blas M. Benito

blasbenito@gmail.com

Authors

Blas M. Benito

aut / cre / cph

Material

NEWS
Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

spatialRF archive

Depends

R ≥ 2.10

Imports

dplyr
ggplot2
magrittr
stats
tibble
utils
foreach
doParallel
ranger
rlang
tidyr
tidyselect
huxtable
patchwork
viridis

Suggests

testthat
spelling