spatstat (version 1.18-4)

logLik.ppm: Log Likelihood for Poisson Point Process Model

Description

Extracts the log likelihood of a fitted Poisson point process model.

Usage

## S3 method for class 'ppm':
logLik(object, ...)

Arguments

object
Fitted point process model. An object of class "ppm".
...
Ignored.

Value

  • A numerical value.

Details

The maximised value of the log likelihood for the fitted model (as approximated by quadrature using the Berman-Turner approximation) is extracted.

If object is not a Poisson process, the maximised log pseudolikelihood is returned, with a warning.

See Also

ppm

Examples

Run this code
data(cells)
  fit <- ppm(cells, ~x)
  logLik(fit)
  AIC(fit)

Run the code above in your browser using DataCamp Workspace