y
, a vector of length $n$,
V
, the (positive definite) covariance matrix of the
observed responses, Vp
, the
$np \times np$
covariance matrix of the responses to be predicted, Vop
,
the $n \times np$ matrix of covariances between the observed
responses and the responses to be predicted, and m
, a numeric vector
of length 1 identifying the value of the mean
for each response.krige.sk(y, V, Vp, Vop, m = 0, return.w = FALSE, nsim = 0,
Ve.diag = NULL, method = "eigen")
V
. Options are "eigen", "chol", or "svd" (Eigen decomposition, Cholesky decomposition, or Singular value decomposition, respectively).nsim
realizations of the conditional realizations. Each column of the matrix represents a realization of the conditional normal distribution.y
before determining the kriging weights,
and then the mean is added onto the predicted response.data(toydata)
y <- as.vector(toydata$y)
V <- toydata$V
Vp <- toydata$Vp
Vop <- toydata$Vop
krige.sk(y, V, Vp, Vop, m = 2)
Run the code above in your browser using DataLab