krigtest {RGeostats}  R Documentation 
Operates the (co)kriging of a single target and returns all the relevant results as arguments
krigtest(dbin, dbout = NA, model = model.input(), neigh = neigh.input(), uc = c("1"), mean = NA, target = NA, iech0 = 1, flag.linked = FALSE, calcul = "point", xvalid = FALSE, ndisc = NA, cov.extract = NA, drift.extract = NA)
dbin 
The 
dbout 
The 
model 
The 
neigh 
The 
uc 
The drift description. Use command 
mean 
Array containing the mean of each variable, used in the case of Simple (Co)Kriging 
target 
If the output target file is not specified, the coordinates of the target sample are provided here. 
iech0 
Rank of the target sample in the 'dbout' file (if provided). Otherwise, this argument is not used. 
flag.linked 
When TRUE, the variables are sharing the same mean (or more generally the same drift). Otherwise, the variables have separate means (drifts). 
calcul 
Kriging option:

xvalid 
When ON, the Crossvalidation neighborhood option is used: i.e. the sample that coincides with the target (if any) is discarded from the neighborhood 
ndisc 
Array giving the number of discretisation points in each direction of the space 
cov.extract 
List of the ranks of the only basic structures not to be filtered out 
drift.extract 
List of the ranks of the only drift functions not to be filtered out 
This procedure returns the following arguments:
neq The number of equations in the (co)kriging system
nrhs The number of righthand sides in the (co0kriging system (equal to the number of variables)
target The coordinates of the target sample
data The array containing the different values for the different variables. Samples with undefined values are excluded. This array is extended with several zeroes up to reach 'neq' values (as many as the number of drift equations).
lhs The LeftHand Side of the (co)kriging system (Dimension: neq * neq)
rhs The RightHand Side of the (co)kriging system (Dimension: neq * nrhs)
wgt The array containing the (co)kriging weights (Dimension: neq * nrhs)
zam The array containing the Dual vector (Dimension: neq). In particular, the tail of this array gives the coefficients of the Drift.
var The matrix of variancecovariance of kriging errors