Package: spatialRF 1.1.4
spatialRF: Easy Spatial Modeling with Random Forest
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>).
Authors:
spatialRF_1.1.4.tar.gz
spatialRF_1.1.4.zip(r-4.5)spatialRF_1.1.4.zip(r-4.4)spatialRF_1.1.4.zip(r-4.3)
spatialRF_1.1.4.tgz(r-4.4-any)spatialRF_1.1.4.tgz(r-4.3-any)
spatialRF_1.1.4.tar.gz(r-4.5-noble)spatialRF_1.1.4.tar.gz(r-4.4-noble)
spatialRF_1.1.4.tgz(r-4.4-emscripten)spatialRF_1.1.4.tgz(r-4.3-emscripten)
spatialRF.pdf |spatialRF.html✨
spatialRF/json (API)
NEWS
# Install 'spatialRF' in R: |
install.packages('spatialRF', repos = c('https://blasbenito.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/blasbenito/spatialrf/issues
- distance_matrix - Matrix of distances among ecoregion edges.
- plant_richness_df - Plant richness and predictors of American ecoregions
random-forestspatial-analysisspatial-regression
Last updated 2 years agofrom:c004558423. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 06 2024 |
R-4.5-win | OK | Nov 06 2024 |
R-4.5-linux | OK | Nov 06 2024 |
R-4.4-win | OK | Nov 06 2024 |
R-4.4-mac | OK | Nov 06 2024 |
R-4.3-win | OK | Nov 06 2024 |
R-4.3-mac | OK | Nov 06 2024 |
Exports:.select_by_max_vif.select_by_preference.vif_to_dfaucauto_corauto_vifbeowulf_clustercase_weightsdefault_distance_thresholdsdouble_center_distance_matrixfilter_spatial_predictorsget_evaluationget_importanceget_importance_localget_moranget_performanceget_predictionsget_residualsget_response_curvesget_spatial_predictorsis_binarymake_spatial_foldmake_spatial_foldsmemmem_multithresholdmoranmoran_multithresholdobjects_sizeoptimization_functionpcapca_multithresholdplot_evaluationplot_importanceplot_moranplot_optimizationplot_residuals_diagnosticsplot_response_curvesplot_response_surfaceplot_training_dfplot_training_df_moranplot_tuningprepare_importance_spatialprint_evaluationprint_importanceprint_moranprint_performancerank_spatial_predictorsrescale_vectorresiduals_diagnosticsresiduals_testrfrf_comparerf_evaluaterf_importancerf_repeatrf_spatialrf_tuningroot_mean_squared_errorselect_spatial_predictors_recursiveselect_spatial_predictors_sequentialstandard_errorstatistical_modethe_feature_engineerthinningthinning_til_nvifweights_from_distance_matrix
Dependencies:assertthatbase64enccachemclicodetoolscolorspacecommonmarkcpp11digestdoParalleldplyrfansifarverfastmapforeachgenericsggplot2gluegridExtragtablehtmltoolshuxtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmunsellnlmepatchworkpillarpkgconfigpurrrR6rangerRColorBrewerRcppRcppEigenrlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisviridisLitewithrxml2