mbg
is an R package for modern model-based geostatistics. mbg
provides a simple interface to run spatial machine learning models and geostatistical models that estimate a continuous (raster) surface from point-referenced outcomes and, optionally, a set of raster covariates. The package also includes functions to summarize raster outcomes by (polygon) region while preserving uncertainty.
The mbg
package combines features from the sf
, terra
, and data.table
packages for spatial data processing; caret
for spatial ML models; and R-INLA
for geostatistical models.
You can install the R package from Github:
devtools::install_github("henryspatialanalysis/mbg")
Or clone the package to your computer and load it dynamically:
devtools::load_all("/local/path/to/mbg/")
After loading the package, you can access package documentation by running help(mbg)
, or get documentation for a specific function by running e.g. help(MbgModelRunner)
.
The general MBG workflow using this package is as follows:
For example workflows, see the introductory vignette.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.