R: Analysis of Deviance for Spatial Logistic Regression Models

anova.slrm {spatstat.core} | R Documentation

## Analysis of Deviance for Spatial Logistic Regression Models

### Description

Performs Analysis of Deviance for two or more fitted Spatial Logistic Regression models.

### Usage

      ## S3 method for class 'slrm'
    anova(object, ..., test = NULL)

### Arguments

`object` | a fitted spatial logistic regression model. An object of class `"slrm"`.
`...` | additional objects of the same type (optional).
`test` | a character string, (partially) matching one of `"Chisq"`, `"F"` or `"Cp"`, indicating the reference distribution that should be used to compute p-values.

### Details

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 p-values for the chi-squared tests. Their interpretation is very similar to that in `anova.glm`.

### Value

An object of class `"anova"`, inheriting from class `"data.frame"`, representing the analysis of deviance table.

### Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au adrian@maths.uwa.edu.au

and Rolf Turner r.turner@auckland.ac.nz

### See Also

`slrm`

### Examples

      X <- rpoispp(42)
      fit0 <- slrm(X ~ 1)
      fit1 <- slrm(X ~ x+y)
      anova(fit0, fit1, test="Chi")

[Package spatstat.core version 2.4-4 Index]