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.

110 Check<strong>in</strong>g a fitted Poisson model<br />

This plot <strong>in</strong>dicates that the model is grossly <strong>in</strong>adequate; the fitted <strong>in</strong>tensity function fails to<br />

capture the dependence of <strong>in</strong>tensity on slope.<br />

It can be helpful to display the derivative C ′ (z), which often <strong>in</strong>dicates which values of z are<br />

associated with a lack of fit.<br />

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

marg<strong>in</strong>al raw residuals<br />

−30000 −20000 −10000 0 10000 20000 30000<br />

0.00 0.05 0.10 0.15 0.20 0.25 0.30<br />

covariate<br />

The derivative is estimated us<strong>in</strong>g a smooth<strong>in</strong>g spl<strong>in</strong>e and you may need to tweak the smooth<strong>in</strong>g<br />

parameters (argument spl<strong>in</strong>eargs) to get a useful plot. Also the package currently does<br />

not plot significance bands for C ′ (z).<br />

Additional techniques described <strong>in</strong> [5] will soon be added to spatstat.<br />

16.2.5 Four-panel plot<br />

If there are no <strong>spatial</strong> covariates, use the command diagnose.ppm to plot the residuals:<br />

> data(japanesep<strong>in</strong>es)<br />

> fit diagnose.ppm(fit)<br />

Copyright<strong>CSIRO</strong> 2010

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

Saved successfully!

Ooh no, something went wrong!