Performs Analysis of Deviance for two or more fitted Spatial Logistic Regression models.
# S3 method for slrm
anova(object, ..., test = NULL)
a fitted spatial logistic regression model.
An object of class "slrm"
.
additional objects of the same type (optional).
a character string, (partially) matching one of
"Chisq"
, "F"
or "Cp"
, indicating the
reference distribution that should be used to compute
An object of class "anova"
, inheriting from
class "data.frame"
, representing the analysis of deviance table.
This is a method for anova
for fitted spatial logistic
regression models (objects of class "slrm"
, usually obtained
from the function slrm
).
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 anova.glm
.
# NOT RUN {
X <- rpoispp(42)
fit0 <- slrm(X ~ 1)
fit1 <- slrm(X ~ x+y)
anova(fit0, fit1, test="Chi")
# }
Run the code above in your browser using DataLab