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.

28.2 Residuals for Gibbs processes 175<br />

> par(mfrow = c(1, 2))<br />

> plot(cells)<br />

> plot(Kest(cells))<br />

> par(mfrow = c(1, 1))<br />

Kest(cells)<br />

cells<br />

K(r)<br />

0.00 0.05 0.10 0.15 0.20<br />

iso<br />

trans<br />

border<br />

theo<br />

0.00 0.05 0.10 0.15 0.20 0.25<br />

Interaction between <strong>po<strong>in</strong>t</strong>s <strong>in</strong> a <strong>po<strong>in</strong>t</strong> process corresponds roughly to the distribution of the<br />

responses <strong>in</strong> logl<strong>in</strong>ear regression. To validate the <strong>in</strong>teraction terms <strong>in</strong> a <strong>po<strong>in</strong>t</strong> process model, we<br />

should plot the distribution of the residuals. The appropriate tool is a Q–Q plot.<br />

r<br />

> qqplot.ppm(fitPois, nsim = 39)<br />

data quantile<br />

−30 −20 −10 0 10 20 30 40<br />

−30 −20 −10 0 10 20 30 40<br />

Mean quantile of simulations<br />

This shows a Q–Q plot of the smoothed residuals for a uniform Poisson model fitted to the<br />

cells data, with <strong>po<strong>in</strong>t</strong>wise 5% critical envelopes from simulations of the fitted model. This<br />

<strong>in</strong>dicates that the uniform Poisson model is grossly <strong>in</strong>appropriate for the cells data.<br />

Return<strong>in</strong>g to the model we fitted at the start of this chapter:<br />

> qqplot.ppm(fit, nsim = 39)<br />

Copyright<strong>CSIRO</strong> 2010

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

Saved successfully!

Ooh no, something went wrong!