residuals.kppm: Residuals for Fitted Cox or Cluster Point Process Model

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
  ## S3 method for class '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.

Author(s)

\adrian \rolf

and \ege

See Also

msr, kppm

Examples

1
2
   fit <- kppm(redwood ~ x, "Thomas")
   rr <- residuals(fit)

spatstat documentation built on Nov. 5, 2018, 1:04 a.m.