Analysing spatial point patterns in R - CSIRO
Analysing spatial point patterns in R - CSIRO
Analysing spatial point patterns in R - CSIRO
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
15.4 Fitted models 103<br />
effectfun(fit, "slope")<br />
lambda<br />
0.005 0.010 0.015 0.020<br />
0.00 0.05 0.10 0.15 0.20 0.25 0.30<br />
slope<br />
15.4.2 Model selection<br />
Analysis of deviance for nested Poisson <strong>po<strong>in</strong>t</strong> process models is implemented <strong>in</strong> spatstat as<br />
anova.ppm. The first model should be a sub-model of the second.<br />
> fit fitnull anova(fitnull, fit, test = "Chi")<br />
Analysis of Deviance Table<br />
Model 1: .mpl.Y ~ 1<br />
Model 2: .mpl.Y ~ slope<br />
Resid. Df Resid. Dev Df Deviance P(>|Chi|)<br />
1 20507 18728<br />
2 20506 18346 1 382.25 < 2.2e-16 ***<br />
---<br />
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1<br />
This effectively performs the likelihood ratio test of the null hypothesis of a homogeneous<br />
Poisson process (CSR) aga<strong>in</strong>st the alternative of an <strong>in</strong>homogeneous Poisson process with <strong>in</strong>tensity<br />
that is a logl<strong>in</strong>ear function of the slope covariate (6). The p-value is extremely small,<br />
<strong>in</strong>dicat<strong>in</strong>g rejection of CSR <strong>in</strong> favour of the alternative. (Please ignore the columns Resid.Df<br />
and Resid.Dev which are artefacts of the discretisation. Only the deviance difference and the<br />
difference <strong>in</strong> degrees of freedom are valid.)<br />
Note that standard Analysis of Deviance requires the null hypothesis to be a sub-model of the<br />
alternative. Unfortunately the model (8), <strong>in</strong> which <strong>in</strong>tensity is proportional to slope, does not<br />
<strong>in</strong>clude the homogeneous Poisson process as a special case, so we cannot use analysis of deviance<br />
to test the null hypothesis of homogeneous Poisson aga<strong>in</strong>st the alternative of an <strong>in</strong>homogeneous<br />
Poisson with <strong>in</strong>tensity (8).<br />
One possibility here is to use the Akaike Information Criterion AIC for model selection.<br />
> fitprop fitnull AIC(fitprop)<br />
Copyright<strong>CSIRO</strong> 2010