'caret' Applications for Spatial-Temporal Models

Supporting functionality to run 'caret' with spatial or spatial-temporal data. 'caret' is a frequently used package for model training and prediction using machine learning. CAST includes functions to improve spatial or spatial-temporal modelling tasks using 'caret'. It includes the newly suggested 'Nearest neighbor distance matching' cross-validation to estimate the performance of spatial prediction models and allows for spatial variable selection to selects suitable predictor variables in view to their contribution to the spatial model performance. CAST further includes functionality to estimate the (spatial) area of applicability of prediction models. Methods are described in Meyer et al. (2018) ; Meyer et al. (2019) ; Meyer and Pebesma (2021) ; Milà et al. (2022) ; Meyer and Pebesma (2022) ; Linnenbrink et al. (2024) ; Schumacher et al. (2025) . The package is described in detail in Meyer et al. (2026) .


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("CAST")

1.1.2 by Hanna Meyer, a month ago


https://github.com/HannaMeyer/CAST, https://hannameyer.github.io/CAST/


Report a bug at https://github.com/HannaMeyer/CAST/issues/


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


Authors: Hanna Meyer [cre, aut] , Carles Milà [aut] , Marvin Ludwig [aut] , Jan Linnenbrink [aut] , Fabian Schumacher [aut] , Philipp Otto [ctb] , Chris Reudenbach [ctb] , Thomas Nauss [ctb] , Edzer Pebesma [ctb] , Jakub Nowosad [ctb] , Darius Görgen [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports caret, data.table, FNN, ggplot2, graphics, grDevices, methods, parallel, sf, stats, twosamples, terra, utils, zoo

Suggests clustMixType, doParallel, geodata, gower, gridExtra, knitr, lubridate, MASS, PCAmixdata, randomForest, rmarkdown, rnaturalearth, scales, scam, stars, testthat, tmap


Imported by climodr, meteo.

Suggested by mlr3spatiotempcv, waywiser.


See at CRAN