spatstat (version 1.21-6)

predict.kppm: Prediction from a Fitted Cluster Point Process Model

Description

Given a fitted cluster point process model, this function computes the fitted intensity of the model.

Usage

## S3 method for class 'kppm':
predict(object, ...)

Arguments

object
Fitted cluster point process model. An object of class "kppm".
...
Arguments passed to predict.ppm.

Value

  • Usually a pixel image (object of class "im").

Details

This is a method for the generic function predict. The argument object should be a cluster point process model (object of class "kppm") obtained using the function kppm.

Prediction computes the intensity of the fitted model. The algorithm calls predict.ppm to compute the intensity.

See Also

kppm, plot.kppm, predict.ppm

Examples

Run this code
data(redwood)
  fit <- kppm(redwood, ~x, "Thomas")
  v <- predict(fit)

Run the code above in your browser using DataCamp Workspace