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 Cross-validation 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:
ndim The Space dimension
nech The number of active data
neq The number of equations in the (co-)kriging system
nrhs The number of right-hand sides in the (co-0kriging system (equal to the number of variables)
target The coordinates of the target sample
xyz The data coordinates
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 Left-Hand Side of the (co-)kriging system (Dimension: neq * neq)
rhs The Right-Hand 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 variance-covariance of kriging errors