Skip to content
Prev 32370 / 398513 Next

help on spatial data

On Wed, 21 May 2003, Ronaldo Reis Jr. wrote:

            
It looks as though your points are fixed observation sites, and so the
spatial distribution of the points themselves is not what is being
observed. The observations are the categorical factor levels at the fixed
points, is that right? What does "the difference between two points" mean
- same category or different category? How can the difference "increase"?
If the points were not so "fixed", this might be approached as a marked 
point process, or if there were more points, through comparing Khat for 
the levels of the factor (spatstat, splancs). However, it feels perhaps 
more like a join count situation, counting similar/not similar neighbour 
points (spdep).

library(spdep)
xy.nb <- cell2nb(4,4)
joincount.test(area1, nb2listw(xy.nb, style="B"))
joincount.test(area2, nb2listw(xy.nb, style="B"))

(or joincount.mc() for a permutation test)

(see: Cliff, A. D., Ord, J. K. 1981 Spatial processes, Pion, p. 20.)