The procedure use the GeoKrig or GeoKrigloc function to compute n-fold kriging cross-validation using informations from a GeoFit object. The function returns some prediction scores.
UTF-8
estimation: Logical; if TRUE then an estimation is performed at each iteration and the estimates are used in the prediction. Otherwise the estimates in the object fit are used.
optimizer: The type of optimization algorithm if estimation is TRUE. See GeoFit for details. If NULL then the optimization algorithm of the object fit is chosen.
lower: An optional named list giving the values for the lower bound of the space parameter when the optimizer is L-BFGS-B or nlminb or optimize if estimation is TRUE.
upper: An optional named list giving the values for the upper bound of the space parameter when the optimizer is L-BFGS-B or nlminb or optimize if estimation is TRUE.
n.fold: Numeric; the percentage of data to be deleted (and predicted) in the cross-validation procedure.
local: Logical; If local is TRUE, then local kriging is performed. The default is FALSE.
neighb: Numeric; an optional positive integer indicating the order of neighborhood if local kriging is performed.
maxdist: Numeric; an optional positive value indicating the distance in the spatial neighborhood if local kriging is performed.
maxtime: Numeric; an optional positive value indicating the distance in the temporal neighborhood if local kriging is performed.
sparse: Logical; if TRUE kriging and simulation are computed with sparse matrices algorithms using spam package. Default is FALSE. It should be used with compactly supported covariances.
type_krig: String; the type of kriging. If Simple (the default) then simple kriging is performed. If Optim then optimal kriging is performed for some non-Gaussian RFs
which: Numeric; In the case of bivariate cokriging it indicates which variable to predict. It can be 1 or 2
parallel: Logical; if TRUE then the estimation step is parallelized
ncores: Numeric; number of cores involved in parallelization.
Returns
Returns an object containing the following informations: - predicted: A list of the predicted values in the CV procedure;
data_to_pred: A list of the data to predict in the CV procedure;
mae: The vector of mean absolute error in the CV procedure;
mad: The vector of median absolute error in the CV procedure;
brie: The vector of brie score in the CV procedure;
rmse: The vector of root mean squared error in the CV procedure;
lscore: The vector of log-score in the CV procedure;
crps: The vector of continuous ranked probability score in the CV procedure;