residuals.dppm: Residuals for Fitted Determinantal Point Process Model

View source: R/kppm.R

residuals.dppmR Documentation

Residuals for Fitted Determinantal Point Process Model

Description

Given a determinantal point process model fitted to a point pattern, compute residuals.

Usage

  ## S3 method for class 'dppm'
residuals(object, ...)

Arguments

object

The fitted determinatal point process model (an object of class "dppm") 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)

\spatstatAuthors

.

See Also

msr, dppm

Examples

   fit <- dppm(swedishpines ~ x, dppGauss, method="c")
   rr <- residuals(fit)

spatstat.core documentation built on May 18, 2022, 9:05 a.m.