29.01.2015 Views

Analysing spatial point patterns in R - CSIRO

Analysing spatial point patterns in R - CSIRO

Analysing spatial point patterns in R - CSIRO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

198 Exploratory tools for multitype <strong>po<strong>in</strong>t</strong> <strong>patterns</strong><br />

> plot(E, ma<strong>in</strong> = "test of <strong>in</strong>dependent components")<br />

test of <strong>in</strong>dependent components<br />

K on, off(r)<br />

0.00 0.05 0.10 0.15 0.20<br />

obs<br />

mmean<br />

hi<br />

lo<br />

0.00 0.05 0.10 0.15 0.20 0.25<br />

r (one unit = 662 microns)<br />

The <strong>in</strong>dependence-of-components hypothesis seems to be accepted <strong>in</strong> this example.<br />

Under the <strong>in</strong>dependence hypothesis,<br />

K ij (r) = πr 2<br />

G ij (r) = F j (r)<br />

J ij (r) ≡ 1.<br />

while the “i-to-any” functions have complicated values. Thus, we would normally use K ij or J ij<br />

to construct a test statistic for <strong>in</strong>dependence of components.<br />

31.4.3 Random labell<strong>in</strong>g<br />

In a randomisation test of the random labell<strong>in</strong>g null hypothesis, the simulated <strong>patterns</strong> X are<br />

generated from the dataset by hold<strong>in</strong>g the <strong>po<strong>in</strong>t</strong> locations fixed, and randomly resampl<strong>in</strong>g the<br />

marks, either with replacement (<strong>in</strong>dependent random sampl<strong>in</strong>g) or without replacement (randomly<br />

permut<strong>in</strong>g the marks). The resampl<strong>in</strong>g operation is performed by rlabel.<br />

Under random labell<strong>in</strong>g,<br />

J i• (r) = J(r)<br />

K i• (r) = K(r)<br />

G i• (r) = G(r)<br />

(where G,K,J are the summary functions for the <strong>po<strong>in</strong>t</strong> process without marks) while the other,<br />

cross-type functions have complicated values. Thus, we would normally use someth<strong>in</strong>g like<br />

K i• (r) − K(r) to construct a test statistic for random labell<strong>in</strong>g.<br />

To do this, cook up a little function to evaluate J i• (r) − J(r):<br />

> Jdif

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!