[R] Cross-variograms

2004-08-17 Thread Edzer J. Pebesma
Jacques, provided that X and Y are colocated (i.e., have exactly the same observation locations), you get the cross variogram right; the definition of this cross variogram is however: gamma(h)= E[(X(s)-X(s+h))*(Y(s)-Y(s+h))] also, where you select: cv <- v$gamma[1:14] you may be better off using th

[R] Cross-variograms

2004-08-05 Thread Jacques VESLOT
Dear All, In order to appreciate the spatial link between to variables: X (numeric) and Y (factor), measured on a grid at the same locations (i.e. a geodata-like object with a two-column dataframe as $data), I want to use a so-called cross-variogram based on such a formula: h(r)= E[(X(0)-X(h))*(Y