This is a method for anova
for comparing several
fitted point process models of class "mppm"
,
usually generated by the model-fitting function mppm
).
If the fitted models are all Poisson point processes,
then this function performs an Analysis of Deviance of
the fitted models. The output shows the deviance differences
(i.e. 2 times log likelihood ratio),
the difference in degrees of freedom, and (if test="Chi"
)
the two-sided p-values for the chi-squared tests. Their interpretation
is very similar to that in anova.glm
.
If some of the fitted models are not Poisson point processes,
the `deviance' differences in this table are
'pseudo-deviances' equal to 2 times the differences
in the maximised values of the log pseudolikelihood (see
ppm
). It is not valid to compare these
values to the chi-squared distribution. In this case,
if adjust=TRUE
(the default), the
pseudo-deviances will be adjusted using the method of Pace et al
(2011) and Baddeley, Turner and Rubak (2015)
so that the chi-squared test is valid.
It is strongly advisable to perform this adjustment.
The argument test
determines which hypothesis test, if any, will
be performed to compare the models. The argument test
should be a character string, partially matching one of
"Chisq"
, "F"
or "Cp"
,
or NULL
. The first option "Chisq"
gives
the likelihood ratio test based on the asymptotic chi-squared
distribution of the deviance difference.
The meaning of the other options is explained in
anova.glm
.
For random effects models, only "Chisq"
is
available, and again gives the likelihood ratio test.