COKRIGE directive
Calculates kriged estimates using a model fitted to the sample variograms and cross variograms of a set of variates.
Options
Parameters
Description
The COKRIGE directive computes kriged estimates using a model fitted by MCOVARIOGRAM to the sample auto- and cross-variograms of a set of variates. The data are supplied as a list of variates using the DATA parameter. The target variable to predict is supplied using the Y option. Note that the target variable must also be present in the list of variates supplied with the DATA parameter. The locations of the measurements are supplied using the parameters X1, X2 (for two or three dimensions) and X3 (for three dimensions).
The METHOD option allows you to specify whether to perform Normal or logNormal cokriging. The lognormal setting is only available for punctual cokriging. For logNormal cokriging the LOGBASE option allows you to specify the base of the logarithms (ten or e) for back transforming the kriged predictions and variances.
By default, GenStat uses global prediction where, for each prediction, all the data values are used. However, it is often desirable to use a subset in a (spatial) neighbourhood around the prediction location. This could be for computational reasons, or to assume local first-order stationarity. You can choose whether to use a global or local search using the SEARCHNEIGHBOURHOOD option.
You can select a subset of the data to be considered when forming the cokriging system by specifying the area or volume defined by X1OUTER, X2OUTER and X3OUTER. Each of these should be set to a variate with two values to define the lower and upper limits in each direction.
You can supply the positions at which the target variable is predicted (estimated) in two ways. The first way is to generate the locations using the X1-3INNER and X1-3INTERVAL options. X1INNER, X2INNER and X3INNER are set to variates with two values to define the lower and upper limits in each direction, and the limits should not lie outside those of X1OUTER, X2OUTER and X3OUTER. X1INTERVAL, X2INTERVAL and X3INTERVAL are set to scalars to define the distance between the successive positions in the first, second and third direction. The intervals should be specified using the same units as the data. You can save the generated locations by supplying an identifier in the POINTS option. The second way is to explicitly supply the points where predictions are required. If the X1-3INNER and X1-3INTERVAL options are unset then you can use the POINTS option to supply a matrix of prediction locations.
By default the cokriging is punctual, i.e. at points that have the same size and shape as the sample support. The BLOCKDIMENSIONS option can be used to specify block cokriging. You can either specify a variate containing the dimensions of the block(s) in the three directions or alternatively supply a matrix defining different block sizes for each point when points are supplied using the POINTS option. For punctual cokriging, you can specify the variance of any measurement error using the MEASUREMENTERROR parameter.
The minimum and maximum number of points used for the kriging are set by the MINPOINTS and MAXPOINTS options, respectively.
The RADII option defines the maximum distance between the target point in a block and usable data. For an isotropic search you should supply a scalar to define the maximum distance or radii of the ellipse (two dimensions) or ellipsoid (three dimensions). For an anisotropic search you should supply the distances for each axis of the ellipse of ellipsoid. For an anisotropic search the angle or angles defining the direction of the axes of the ellipse or ellipsoid for the search are supplied using the ELLIPSEAXIS option. For two dimensions you should supply a scalar containing the angle for the first axis which is measured in degrees, counter-clockwise from East if option COORDSYSTEM is set to mathematical, or clockwise from North if COORDSYSTEM is set to geographical. For three dimensions the first value defines the angle for the first axis which is measured in degrees, counter-clockwise from East if COORDSYSTEM is set to mathematical, or clockwise from North if COORDSYSTEM is set to geographical. The second value defines the dip angle for the first axis (rotation angle around the y-axis) which is measured in degrees up from horizontal. The third value defines the rotation angle of the second and third axis around the first axis (defined by the two previous angles).
The POOLRADIUS option allows you to specify a minimum distance for which points can be pooled.
The ESTIMATES parameter allows you to specify an identifier of a data structure storing estimates of the non-linear parameters, sill values and associated information. This structure should be formed using the MCOVARIOGRAM directive.
The PRINT option controls the printed output with settings:
Universal kriging may be invoked by setting the DRIFT option to linear or to quadratic, i.e. to be of order 1 or 2. The default is DRIFT=constant, to give ordinary cokriging. You can include explanatory variables in the mean function by listing explanatory variates with the TERMS option, and their associated coordinates using the X1EXV, X2EXV and X3EXV options. For two-dimensional cokriging, the DRIFT=polygon option allows you to specify categorical variables defined by one or more closed polygons (map units). The map units and polygons should be supplied in a pointer using the POLYGONCOORDINATES option. The pointer should contain the coordinates of the polygons in two variates (x- and y-positions) and a factor where each level defines a different map unit. If there is more than one polygon within a map unit these should be separated with a row of missing values.
You can specify the sampling support size (length, area or volume) of the data points using the SAMPLESUPPORT parameter.
The PERCENTQUANTILES option can specify percentage values for which to compute quantiles for the conditional distributions. The quantiles can be saved using the QUANTILES parameter.
The CPTHRESHOLD option allows you to specify thresholds for calculating conditional probabilities. The conditional probabilities can be saved using the CONDITIONALPROBABILITIES parameter.
The kriged predictions and variances can be saved using the PREDICTIONS and VARIANCES parameters. If a grid or volume of points has been generated using the X1-3INNER and X1-3INTERVAL options, the corresponding prediction locations can be saved using the POINTS option.
Options: PRINT, Y, METHOD, X1OUTER, X2OUTER, X3OUTER, X1INNER, X2INNER, X3INNER, X1INTERVAL, X2INTERVAL, X3INTERVAL, POINTS, BLOCKDIMENSIONS, POOLRADIUS, SEARCHNEIGHBOURHOOD, MINPOINTS, MAXPOINTS, RADII, ELLIPSEAXIS, DRIFT, X1EXV, X2EXV, X3EXV, TERMS, POLYGONCOORDINATES, COORDSYSTEM, CPTHRESHOLD, PERCENTQUANTILES, LOGBASE.
Parameters: DATA, X1, X2, X3, PREDICTIONS, VARIANCES, MEASUREMENTERROR, ESTIMATES, CONDITIONALPROBABILITIES, QUANTILES, SAMPLESUPPORT.