predict.loccit: Prediction for Locally-Fitted Cox or Cluster Model

View source: R/loccit.R

predict.loccitR Documentation

Prediction for Locally-Fitted Cox or Cluster Model

Description

Computes the fitted intensity of a locally-fitted Cox process or cluster process model.

Usage

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

  ## S3 method for class 'loccit'
fitted(object, ..., new.coef=NULL)

Arguments

object

Locally fitted point process model (object of class "loccit" fitted by loccit).

...

Arguments passed to predict.locppm.

new.coef

New values for the fitted coefficients. A matrix in which each row gives the fitted coefficients at one of the quadrature points of the model.

Details

The fitted intensity is computed.

Value

An object of class "ssf" as described in ssf.

Author(s)

\adrian

.

References

\localpaper \baddrubaturnbook

See Also

loccit, predict.locppm.

Examples

  X <- redwood[owin(c(0,1), c(-1,-1/2))]
  fit <- loccit(X, ~1, "Thomas", nd=5, control=list(maxit=20))
  lam <- predict(fit)

spatstat.local documentation built on Nov. 13, 2022, 9:06 a.m.