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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16.2 Validation us<strong>in</strong>g residuals 109<br />

This is an image plot of the ‘smoothed residual field’<br />

where ̂λ(u) is the nonparametric, kernel estimate of the <strong>in</strong>tensity,<br />

s(u) = ̂λ(u) − λ † (u) (12)<br />

n(x)<br />

∑<br />

̂λ(u) = e(u) κ(u − x i )<br />

i=1<br />

while λ † (u) is a correspond<strong>in</strong>gly-smoothed version of the parametric estimate of the <strong>in</strong>tensity<br />

accord<strong>in</strong>g to the fitted model,<br />

∫<br />

λ † (u) = e(u) κ(u − v)λˆθ(v)dv.<br />

W<br />

Here κ is the smooth<strong>in</strong>g kernel and e(u) is the edge correction (2) on page 79. The difference<br />

(12) should be approximately zero if the model is true.<br />

In this example the smoothed residual image conta<strong>in</strong>s a visible trend, suggest<strong>in</strong>g that the<br />

model is <strong>in</strong>appropriate.<br />

16.2.4 Lurk<strong>in</strong>g variable plot<br />

If there is a <strong>spatial</strong> covariate Z(u) that plays an important role <strong>in</strong> the analysis, it may be useful<br />

to display a lurk<strong>in</strong>g variable plot of the residuals aga<strong>in</strong>st Z. This is a plot of C(z) = R(B(z))<br />

aga<strong>in</strong>st z, where<br />

B(z) = {u ∈ W : Z(u) ≤ z}<br />

is the region of space where the covariate value is less than or equal to z.<br />

> grad lurk<strong>in</strong>g(fitx, grad, type = "raw")<br />

cumulative raw residuals<br />

−600 −400 −200 0<br />

0.00 0.05 0.10 0.15 0.20 0.25 0.30<br />

covariate<br />

Note that the lurk<strong>in</strong>g variable plot typically starts and ends at the horizontal axis, s<strong>in</strong>ce (for<br />

any model with an <strong>in</strong>tercept term) the total residual for the entire w<strong>in</strong>dow W must equal zero.<br />

This is analogous to the fact that the residuals <strong>in</strong> l<strong>in</strong>ear regression sum to zero.<br />

The plot also shows approximate 5% significance bands for the cumulative residual C(x) or<br />

C(y), obta<strong>in</strong>ed from the asymptotic variance under the model.<br />

Copyright<strong>CSIRO</strong> 2010

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

Saved successfully!

Ooh no, something went wrong!