Chapter Contents |
Previous |
Next |
The VARIOGRAM Procedure |
The basic starting point in computing the semivariogram is the enumeration of pairs of points for the spatial data. Figure 70.11 shows a spatial domain in which a set of measurements are made at the indicated locations. Two points P1 and P2, with coordinates (x1,y1), (x2,y2), are selected for illustration. A vector, or directed line segment, is drawn between these points. This pair is then categorized first by orientation of this directed line segment and then by its length. That is, the pair P1P2 is placed into an angle and distance class.
For three classes, .When the example directed line segment P1P2 is superimposed on the coordinate system showing the angle classes, its angle, measured clockwise from north, is approximately 45o. In particular, it falls within , the second angle class. See Figure 70.12.
Note that if the designated points P1 and P2 are labeled in the opposite order, the orientation is in a reciprocal direction, that is, approximately 225o for the point pair instead of approximately 45o. This does not affect angle class selection; the angle classes and are the same.
If you specify an angle tolerance less than the default, for example, ATOL=15o, some point pairs might be excluded. For example, the selected point pair P1P2 in Figure 70.12, while closest to the 60o axis, might lie outside . In this case, the point pair P1P2 would be excluded from the variogram computation.
On the other hand, you can specify an angle tolerance greater than the default. This can result in a point pair being counted in more than one angle class. This has a smoothing effect on the variogram and is useful when there is a small amount of data available.
An alternative way to specify angle classes and angle tolerances is with the DIRECTIONS statement. The DIRECTIONS statement is useful when angle classes are not equally spaced. When you specify the DIRECTIONS statement, you should also specify the angle tolerance. The default value of the angle tolerance is 45o when a DIRECTIONS statement is used instead of the NDIRECTIONS= option in the COMPUTE statement. This may not be appropriate for a particular set of angle classes. See the "DIRECTIONS Statement" section for more details on the DIRECTIONS statement.
When the directed line segment P1P2 is superimposed on the coordinate system showing the distance classes, it is seen to fall in the first lag class; see Figure 70.13 for an illustration for .
Because pairwise distances are positive, lag class zero is smaller than lag classes 1, ... , MAXLAG-1. For example, if you specify LAGD=1.0 and MAXLAG=10, and you do not specify a LAGTOL= value in the COMPUTE statement in PROC VARIOGRAM, the ten lag classes generated by the preceding equation are
This is because the default lag tolerance is one-half the LAGD= value, resulting in no gaps between the distance class intervals. This is shown in Figure 70.14.
On the other hand, if you do specify a distance tolerance with the DTOL= option in the COMPUTE statement, a further check is performed to see if the point pair falls within this tolerance of the nearest lag. In the preceding example, if you specify LAGD=1.0 and MAXLAG=10 (as before) and also specify LAGTOL=0.25, the intervals become
Note that this specification results in gaps in the lag classes; a point pair P1P2 might fall, for example, in the interval
For example, suppose two points P3, P4 are picked from the domain in Figure 70.11 and are superimposed on the grid defining distance and angle classes, as shown in Figure 70.15.
The endpoint of vector P3P4 falls within the angle class around 60o and the 5th lag class; however, it falls outside the restricted area defined by the bandwidth. Hence, it is excluded from the semivariogram calculation.
Finally, a pair PiPj that falls in a lag class larger than the value of the MAXLAG= option is excluded from the semivariogram calculation.
From this description, it is clear that the number of pairs within each angle/distance class is strongly affected by the angle and lag tolerances. Since it is desirable to have the maximum number of point pairs within each class, the angle tolerance and the distance tolerance should usually be the default values.
Denote all pairs PiPj belonging to angle class and distance class L=L(PiPj) by . For example, in the preceding illustration, P1P2 belongs to N(60o,1).
Let denote the number of such pairs. Let Vi, Vj be the measured values at points Pi, Pj. The component of the standard (or method of moments) semivariogram corresponding to angle/distance class is given by
The robust version of the semivariogram, as suggested by Cressie (1993), is given by
This robust version of the semivariogram is computed when you specify the ROBUST option in the COMPUTE statement in PROC VARIOGRAM.
PROC VARIOGRAM computes and writes to the OUTVAR= data set the quantities , and .
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.