Usage
## S3 method for class 'gstatModel':
predict(object,
predictionLocations, nmin = 10, nmax = 30, debug.level = -1,
predict.method = c("RK", "KED")[1], nfold = 5, verbose = FALSE,
nsim = 0, mask.extra = TRUE, block = predictionLocations@grid@cellsize,
zmin = -Inf, zmax = Inf, subsample = length(object@sp),
coarsening.factor = 1, vgmmodel = object@vgmModel,
subset.observations = !is.na(object@sp@coords[,1]), betas = c(0,1), ...)
## S3 method for class 'list':
predict(object,
predictionLocations, nmin = 10, nmax = 30, debug.level = -1,
predict.method = c("RK", "KED")[1], nfold = 5, verbose = FALSE,
nsim = 0, mask.extra = TRUE, block = predictionLocations@grid@cellsize,
zmin = -Inf, zmax = Inf, subsample = length(object@sp), ...)Arguments
object
object of type "gstatModel"
predictionLocations
object of type "SpatialPixelsDataFrame" prediction locations (must contain all covariates from the model)
nmin
integer; minimum number of nearest observations sent to gstat::krige
nmax
integer; maximum number of nearest observations sent to gstat::krige
debug.level
integer; default debug level mode sent to gstat::krige
predict.method
character; mathematical implementation of the gstat::krige interpolation method with covariates: Regression-Kriging (RK) or Kriging with External Drift (KED)
nfold
integer; n-fold cross validation sent to gstat::krige.cv
verbose
logical; specifies whether to supress the progress bar of the gstat::krige.cv
nsim
integer; triggers the geostatistical simulations
mask.extra
logical; specifies whether to mask out the extrapolation pixels (prediction variance exceeding the global variance)
block
numeric; support size (block predictions by default)
zmin
numeric; lower physical limit for the target variable
zmax
numeric; upper physical limit for the target variable
subsample
integer; sub-sample point observations to speed up the processing
coarsening.factor
integer; coarsening factor (1:5) to speed up the processing
vgmmodel
object of class data.frame corresponding to the gstat::vgm variogram
subset.observations
logical; vector specifying the subset of observations used for interpolation
betas
numeric; vector of the beta coefficients to be passed to the gstat::krige
...
other optional arguments that can be passed to gstat::krige and/or predict.glm