A pair object contains information defining pairs of points contained in a point object. A pair object is a list containing five
vectors: from
, to
, lags
, dist
, and bins
. The length of each of these vectors (except bins
) is equal to the number of pairs of
points being represented, say k. The vectors from
and to
contain pointers into the vectors of a point object, pointing to each
member of the pair of points (e.g., from[k] points to si and to[k] points to sj). The vector dist
contains the distance between the
pairs of points. The vector lags
contains the lag number to which each pair of points has been assigned. The vector bins
contains
the spatial midpoint between each lag and is used for plotting.
pair(point.obj,num.lags=10,type='isotropic', theta=0, dtheta=5, maxdist)
point()
'isotropic'
or 'anisotropic'
. If 'isotropic'
then all $n \choose 2$ possible pairs of points are represented in the pair
object. If 'anisotropic'
, then the arguments theta
and dtheta
are used to determine which pairs of points to include.pair
object (see Notes below).theta
, measured in degrees that determines pairs of points to be included in the pair
object (see Notes below).pair
function to consume a considerable amount of computation time. In most cases, spatial dependence can be
adaquately characterized without examining the entire spaital extent of the data set.pair
object:
pairs
to pair
to avoid conflicts with R's pairs
function!!point
maas.pair <- pair(maas.point,num.lags=10,maxdist=2000)
maas.pair25 <- pair(maas.point,num.lags=10,type='anisotropic',
theta=25,maxdist=500)
Run the code above in your browser using DataLab