update.kppm {spatstat}R Documentation

Update a Fitted Cluster Point Process Model

Description

update method for class "kppm".

Usage

 ## S3 method for class 'kppm'
update(object, trend = ~1, ..., clusters = NULL)

Arguments

object

Fitted cluster point process model. An object of class "kppm", obtained from kppm.

trend

A formula without a left hand side, determining the form of the intensity of the model.

...

Other arguments passed to kppm.

clusters

The type of cluster mechanism. A character string. See kppm.

Details

object should be a fitted cluster point process model, obtained from the model-fitting function kppm. The model will be updated according to the new arguments provided.

The argument trend determines the formula for the intensity in the model. It should be an R formula without a left hand side. It may include the symbols . and + or - to specify addition or deletion of terms in the current model formula, as shown in the Examples below.

The model is refitted using kppm.

Value

Another fitted cluster point process model (object of class "kppm".

Author(s)

Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz

See Also

kppm, plot.kppm, predict.kppm, simulate.kppm, methods.kppm, vcov.kppm

Examples

 data(redwood)
 fit <- kppm(redwood, ~1, "Thomas")
 fitx <- update(fit, ~ . + x)
 fitM <- update(fit, clusters="MatClust")

[Package spatstat version 1.25-3 Index]