Leave-one-out cross-validation of space-time kriging
Usage
STKrigingCV(z, coords, times, model, beta = NULL)
Arguments
- z
Observed values.
- coords
Two-column matrix of observation locations.
- times
Observation times.
- model
Space-time covariance model (STCovariance).
- beta
Known mean for simple kriging.
Value
List with prediction, variance, residuals,
rmse, msdr (mean squared standardised residual).
Examples
m <- list(type = "metric", stAni = 1, joint = list(model = "Exp", psill = 1, range = 1))
STKrigingCV(c(1, 2, 1.5, 1.2), rbind(c(0, 0), c(1, 0), c(0, 1), c(1, 1)), c(0, 0, 1, 1), m)$rmse
#> [1] 0.5938368