Autocorrelation Regression Trees

A modified version of the classification and regression tree (CART) algorithm for modelling spatial data that features coordinate information. Coordinate information can be used to evaluate measures of spatial autocorrelation and spatial compactness during the splitting phase of the tree, leading to better predictions and more physically realistic predictions on these types of datasets. These methods are described in Ancell and Bean (2021) .


Autocart

DOI

A modified regression tree R package that is intended for spatial datasets that feature coordinate information. Coordinate information is used to calculate measures of both spatial autocorrelation and spatial compactness during the splitting phase of the tree. This gives the tree more predictive power on these types of spatial datasets. The objective function for this regression tree is a linear combination of three objective functions. The hyperparameters "alpha" and "beta" (each given from 0.0 to 1.0 where alpha and beta do not sum to a number greater than 1.0) control the weight on the spatial autocorrelation and spatial compactness objective functions respectively.

Installation from source

To install this package from the source code, make sure that you have the devtools package downloaded by using install.packages("devtools").

Windows

You must have Rtools downloaded so that the C++ source can be compiled. The most recent version of rtools can be found here

macOS

Install the Xcode command line tools with xcode-select --install in the shell. You may need to register as an Apple developer first.

Linux

To compile the C++ code, you must also have the R development tools, which can be installed by installing the r-base-dev package.

After downloading compiler

To install this package in an R environment, use devtools::install_github("ethanancell/autocart")

Usage

To get started after installation, view the introductory autocart vignette by using vignette("autocart-intro")

License

MIT

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("autocart")

1.4.5 by Ethan Ancell, 5 years ago


Browse source code at https://github.com/cran/autocart


Authors: Ethan Ancell [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports Rcpp, RcppParallel

Depends on fields, mgcv

Suggests testthat, knitr, rmarkdown

Linking to Rcpp, RcppArmadillo, RcppParallel

System requirements: GNU make


See at CRAN