# residuals.kppm

From spatstat v1.61-0
by Adrian Baddeley

##### Residuals for Fitted Cox or Cluster Point Process Model

Given a Cox or cluster point process model fitted to a point pattern, compute residuals.

##### Usage

```
# S3 method for kppm
residuals(object, …)
```

##### Arguments

- object
The fitted point process model (an object of class

`"kppm"`

) for which residuals should be calculated.- …
Arguments passed to

`residuals.ppm`

.

##### Details

This function extracts the intensity component of the model using
`as.ppm`

and then applies `residuals.ppm`

to compute the residuals.

Use `plot.msr`

to plot the residuals directly.

##### Value

An object of class `"msr"`

representing a signed measure or vector-valued measure
(see `msr`

). This object can be plotted.

##### See Also

##### Examples

```
# NOT RUN {
fit <- kppm(redwood ~ x, "Thomas")
rr <- residuals(fit)
# }
```

*Documentation reproduced from package spatstat, version 1.61-0, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.