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