spatstat (version 1.35-0)

logLik.mppm: Log Likelihood for Poisson Point Process Model

Description

Extracts the log likelihood of a Poisson point process model that has been fitted to multiple point patterns

Usage

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

Arguments

object
Fitted point process model (fitted to multiple point patterns). An object of class "mppm".
...
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

mppm

Examples

Run this code
data(waterstriders)
  fit <- mppm(Bugs ~ x, hyperframe(Bugs=waterstriders))
  logLik(fit)
  AIC(fit)

Run the code above in your browser using DataCamp Workspace