X
, the $n \times k$
design matrix for the regression coefficients of the observed
data, y
, the $n \times 1$ matrix of observed responses,
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 \times 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.krige.uk(y, V, Vp, Vop, X, Xp)
red
.X
and Xp
should contain a column of 1's if an intercept
is desired.data(toydata)
X <- toydata$X
y <- toydata$y
V <- toydata$V
Xp <- toydata$Xp
Vp <- toydata$Vp
Vop <- toydata$Vop
krige.uk(y = y, V = V, Vp = Vp, Vop = Vop, X = X, Xp = Xp)
Run the code above in your browser using DataLab