X
,
the $n \times k$
design matrix for the regression coefficients of the observed
data,
V
, the (positive definite) covariance matrix of the
observed responses, Xp
, the $np \times k$ design matrix
of the responses to be predicted, Vp
, the
$np \times np$
covariance matrix of the responses to be predicted, and Vop
,
the $n x np$ matrix of covariances between the observed
responses and the responses to be predicted. Uses Armadillo C++ template via RcppArmadillo to perform most of the operations.pweights.uk(X, V, Xp, Vp, Vop)
w
, the $np \times n$ matrix containing the kriging weights used to calculate the predicted values.data(toydata)
X <- toydata$X
V <- toydata$V
Xp <- toydata$Xp
Vp <- toydata$Vp
Vop <- toydata$Vop
pweights.uk(X, V, Xp, Vp, Vop)
Run the code above in your browser using DataLab